|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
help
yeah, i need help wit the sig rotator, cause this is php i guess i shoulda put it
in here <?php if ($dir = opendir("/newfolder")) { $list = buildimagearray($dir); displayrandomimage($list); } { while (false !== ($file = readdir($dir))) { if (!is_dir($file) && getimagesize($file)) { $list[] = $file; } } return $list; } { srand ((double) microtime() * 10000000); $sig = array_rand ($list); $size = getimagesize ($list[$sig]); $fp = fopen($list[$sig], "rb"); if ($size && $fp) { header("Content-type: {$size['mime']}"); fpassthru($fp); exit; } } ?>
__________________
![]() Last edited by Lucky; 05-31-2005 at 08:30 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|