Search found 3 matches

by Mystical
Fri Jan 19, 2007 1:57 pm
Forum: PHP - Code
Topic: Creating a random image and background
Replies: 4
Views: 415

well I ended up just using somehting like, using this code as index.php placed in a folder named bg.gif <?php $now = date('i'); function odd($number) { return($number & 1); } if ( odd( $now ) ) {$image = "http://www.the-hacks.com/layouts/thsbg.png"; } else { $image = "http://img95...
by Mystical
Thu Jan 18, 2007 5:17 pm
Forum: PHP - Code
Topic: Creating a random image and background
Replies: 4
Views: 415

well that won't work because I'm using the php files as an index.php then i have the folders as background.png and forground.png
by Mystical
Thu Jan 18, 2007 1:46 pm
Forum: PHP - Code
Topic: Creating a random image and background
Replies: 4
Views: 415

Creating a random image and background

I've made the script to get a random image using Curl because my host has opendir() disabled but I've not been able to come up with a method for creating a random image and have a background that goes with it. like background1.gif image1.gif or background10.gif image10.gif any ideas would be nice. t...