TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

TP splash page?

Page: 1 Reply
Jul 2nd 2003#111255 Report
Member since: Jun 3rd 2003
Posts: 1867
Yeh. I think this is the right section to put this in...

I was wondering how Pank got the splash page to load a random HTML file into the browser.

For my intentions, knowing how to load a random picture is fine.

How is this done?

(bear in mind, I am like hellen keller when it comes to php and all that good stuff :D )
Reply with Quote Reply
Jul 2nd 2003#111257 Report
Member since: Mar 24th 2002
Posts: 3114
It's up somewhere on this board, make a search for it.
If you only need to load a random image and you have PHP support on your server you could use something like this:

[php]
$images=array("splash_hiphip.jpg","splash_hauhau.jpg","splash_meooow.jpg");

$length=sizeof($images);
$number=rand(0,$length);

echo "";
[/php]

^ out of my tired tired head, but you get the idea.
Reply with Quote Reply
Jul 2nd 2003#111309 Report
Member since: Mar 18th 2001
Posts: 6632
There are nice random image scripts here:

http://www.hotscripts.com/PHP/Scripts_and_Programs/Randomizing/Random_Images/index.html

You don't have to enter an array of the files either, you just drop the script in a directory of images, and it will grab them randomly on its own.
Reply with Quote Reply
Jul 2nd 2003#111326 Report
Member since: Jun 3rd 2003
Posts: 1867
sweet guys, thanks a million

Maybe I should learn php :/

does anybody have any places they recommend to learn php?
Reply with Quote Reply
Jul 2nd 2003#111340 Report
Member since: Nov 26th 2001
Posts: 2586
www.php.net is a good source. THey have the online manula and also many threads of sample code by php addicts.
Reply with Quote Reply
Jul 2nd 2003#111379 Report
Member since: Mar 16th 2001
Posts: 2421
Reply with Quote Reply
Jul 2nd 2003#111380 Report
Member since: Nov 26th 2001
Posts: 2586
That is a thread within a thread within a thread.

If (! Oxymoron) then
Thread
Else
this.IsNonsense(myPost)
End If
Reply with Quote Reply
Jul 14th 2003#113488 Report
Member since: Jun 3rd 2003
Posts: 1867
Hah! Sweet.

Except I don't know PHP, so I don't get the joke
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum