Forums | Chat | News | Contact Us | Register | PSU Social |
PSU: what, you were expecting something else?
Forums | Chat | News | Contact Us | Register | PSU Social |
2004-06-12, 11:17 AM | [Ignore Me] #54 | ||
First Sergeant
|
Hmm, speaking of sigs, I need to get around to making one someday. Problem is I have no clue what I would put in it...cant do a dicepoint thing, my stats are not that great....cant think of anything funny right now...oh well. Maybe I'll do one of those really annoying text signatures with some silly quote, but I'll have the line break BELOW the quote, that way every starts to read it thinking its part of my messege. Boy I hate those sigs.
|
||
|
2004-06-12, 11:19 AM | [Ignore Me] #55 | |||
Lieutenant General
|
VBB 1 d3ath4u 0 |
|||
|
2004-06-12, 02:12 PM | [Ignore Me] #59 | ||
<?php
//read folder $folder=opendir("." ); $names = Array(); while ($file = readdir($folder)) $names[count($names)] = $file; closedir($folder); //sort file names in array sort($names); //remove any non-images from array $tempvar = 0; foreach ($names as $name) { $ext = strtolower(substr($name,-4)); if ($ext==".jpg"||$ext==".gif"||$ext=="jpeg"||$ext==" .png" ) $names1[] = $name; } //random srand ((double) microtime() * 10000000); $rand_keys = array_rand ($names1, 2); //random image from array $slika = $names1[$rand_keys[0]]; //image dimensions $dimensions = GetImageSize($slika); header ("Location: http://<YOUR HOST/DIRECTORY HERE>//$slika" ) ?> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Replace http://<YOUR HOST/DIRECTORY HERE>//$slika" ) with your directory (keep the //$sk... |
|||
|
|
Bookmarks |
|
|