|
|
|
|
![]() ![]() |
![]() Group: Members
Posts: 1 Joined: 1-March 05 Member No.: 4,083 |
Post
#1
Mar 1 2005, 11:00 PM
Well, since I'm new, I don't know what has been posted and what hasn't, so here's an easy-to-use php tutorial! CODE <?php @header("Pragma: nocache"); $URL1="Your Image Source"; $URL2="Your Image Source"; $URL3="Your Image Source"; $URL4="Your Image Source"; $URL5="Your Image Source"; srand((double) microtime() * 1000); $random = rand(1,5); if($random == 1) @header ("Location: $URL1"); elseif ($random == 2) @header ("Location: $URL2"); elseif ($random == 3) @header ("Location: $URL3"); elseif ($random == 4) @header ("Location: $URL4"); elseif ($random == 5) @header ("Location: $URL5"); ?> Replace the 'URL1-5' with the image URLs, upload it to a hosting site, and there you go. If you have more than five images, simply add $URL5="Your Image Source"; $URL6="Your Image Source"; and elseif ($random == 5) @header ("Location: $URL5"); elseif ($random == 6) @header ("Location: $URL6"); |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
0 | Albus Dumbledore | 2,685 | 18th June 2006 - 08:28 AM Last post by: Albus Dumbledore |
|||
![]() |
9 | noxit | 7,439 | 30th July 2004 - 02:57 PM Last post by: templest |
|||
![]() |
32 | ultrasmad | 22,109 | 14th February 2005 - 11:01 AM Last post by: Someone |
|||
![]() |
16 | ultrasmad | 12,200 | 21st May 2005 - 10:04 AM Last post by: alexia |
|||
![]() |
3 | ultrasmad | 6,490 | 30th July 2004 - 03:27 PM Last post by: templest |
|||
![]() |
0 | jossylala | 222 | 2nd August 2009 - 06:36 PM Last post by: jossylala |
|||
![]() |
13 | galexcd | 3,139 | 14th August 2007 - 01:25 PM Last post by: Galahad |
|||
![]() |
39 | Bash | 39,699 | 28th May 2009 - 01:47 AM Last post by: nol |
|||
![]() |
44 | Dehornos | 6,824 | 24th October 2009 - 10:55 AM Last post by: TheDarkHacker |
|||
![]() |
4 | Alpha | 10,429 | 28th December 2008 - 05:12 PM Last post by: stanny |
|||
![]() |
14 | risse5 | 4,249 | 29th August 2009 - 05:03 PM Last post by: The Simpleton |
|||
![]() |
5 | wassie | 5,435 | 22nd August 2004 - 04:00 PM Last post by: wassie |
|||
![]() |
12 | cragllo | 9,739 | 25th August 2004 - 08:09 AM Last post by: cragllo |
|||
![]() |
3 | zer000s | 996 | 12th April 2008 - 10:54 AM Last post by: the need for speed |
|||
![]() |
16 | DataHead | 16,328 | 3rd September 2004 - 09:44 PM Last post by: Bash |
|||
|
Open Discussion | Time is now: 6th November 2009 - 10:47 PM |
Web Hosting Powered by ComputingHost.com.