note 37361 deleted from function.file-exists by pollita

From: Date: Wed, 12 Nov 2003 05:58:02 +0000
Subject: note 37361 deleted from function.file-exists by pollita
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-60279@lists.php.net to get a copy of this message
Note Submitter: e.entropy@juno.com ---- For those of you who didn't have the time to write your own <b>news marquee</b>, and that have a php-driven site... Check this out: <marquee bgColor="#000000" width="120" direction="up"> <font color="#FFFFFF"> <?php $i = 0; $folder = "news"; $ext = "inc"; while (file_exists("./$folder/$i.$ext")) { echo ("<BR>"); include ("./folder/$i.$ext"); echo ("<BR><HR>"); $i++; } ?> </font> </marquee> // you can change the $folder to anything you want, along with the inclusion extension ($ext).

« previous php.notes (#60279) next »