IT-Services & Consulting
· Products
» PHP
» Perl
» PC
» AS/400

PHP-Scripts by GF-Data Inc.

  • Guestbook
  • Chat
  • Payment-Gateways
  • Ticket-Systems
  • Contact/Feedback-Forms
  • ...

  • Free Scripts - Free Download

  • Random Image
  • - Source

    <?php
    // Random Picture v0.1
    // (c) Guido Faecke, GF-Data Inc.

      
    $pic_dir 'images/';
      
      
    $counter 0;

      
    $d dir($pic_dir);
      while(
    $entry=$d->read()) {
        if (
    $entry != "." && $entry != "..") {
          
    $array[] = $entry;
          
    $counter++;
        }
      }
      
    $d->close();
      
    $counter--;
      
    $which rand(0$counter);
    ?>

    <? echo '<img src="'.$pic_dir.$array[$which].'" border="0">'?>



    To show your readers that you are using our free scripts, please link back to our page:
    <a href="http://www.gf-data.com">GF-Data Inc.</a>