- <?php
- ini_set('error_reporting', E_ALL);
- ini_set('display_errors', true);
- $handle = @fopen("C:/httpd/htdocs/pictures.list", "r");
- if ($handle)
- {
- while (!feof($handle))
- {
- $PICS[] = rtrim(fgets($handle, 4096));
- }
- }
- fclose($handle);
- $PICTURE_DIRECTORY = 'C:/httpd/htdocs/';
- echo '<html><head><link rel="stylesheet" type="text/css" href="pictures.css" /><title>rnd pictures</title><META HTTP-EQUIV=Refresh CONTENT="15; URL=http://127.0.0.1/show_rnd_pic.php"></head><body style="text-align: center;">'."\n";
- echo '<div><p style="vertical-align: middle">'."\n";
- echo '<ul class="gallery">'."\n";
- echo '<li><a href="#" class="pic-'.rand(1,20).'"><img src="'.$PICS[rand(0,(count($PICS)-1))].'" alt="nothing" /></a></li>'."\n";
- echo '<li><a href="#" class="pic-'.rand(1,20).'"><img src="'.$PICS[rand(0,(count($PICS)-1))].'" alt="nothing" /></a></li>'."\n";
- echo '<li><a href="#" class="pic-'.rand(1,20).'"><img src="'.$PICS[rand(0,(count($PICS)-1))].'" alt="nothing" /></a></li>'."\n";
- echo '</ul>'."\n";
- echo '<ul class="gallery">'."\n";
- echo '<li><a href="#" class="pic-'.rand(1,20).'"><img src="'.$PICS[rand(0,(count($PICS)-1))].'" alt="nothing" /></a></li>'."\n";
- echo '<li><a href="#" class="pic-'.rand(1,20).'"><img src="'.$PICS[rand(0,(count($PICS)-1))].'" alt="nothing" /></a></li>'."\n";
- echo '<li><a href="#" class="pic-'.rand(1,20).'"><img src="'.$PICS[rand(0,(count($PICS)-1))].'" alt="nothing" /></a></li>'."\n";
- echo '</ul>'."\n";
- echo '</p></div>'."\n";
- echo '</body></html>'."\n";
- ?>
Posted by show_rnd_pic on Tue 12th Jun 22:48
download
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.