Search found 1 match
- Tue Mar 18, 2008 6:11 pm
- Forum: PHP - Code
- Topic: Randomly Pick image from a folder and display
- Replies: 1
- Views: 205
Randomly Pick image from a folder and display
I want to be able to randomly pic an image from a set folder, and then display. A while back (coupla years), my old boss created this code for me. <? $imagetopcount='1'; $dir="ads/top_rotator"; $webpath="ads/top_rotator"; if (is_dir($dir)) { if ($dh = opendir($dir)) { w...