creating a text file

From: Date: Thu, 10 Apr 2003 14:52:25 +0000
Subject: creating a text file
Groups: php.general 
Request: Send a blank email to php-general+get-143344@lists.php.net to get a copy of this message
Is there a way to make php create a text file that lists contents of a directory? This is what I use from shell: csh -c "ls *jpg > list.photos" I have a photo gallery that reads the images in a directory from a text file. I would like to eliminate the manual creation of that file. If there's a better way to do it, maybe firing it into a db instead of a textfile or having php read the contents of the directory without creating a text file, please let me know. I appreciate the help. Durdin _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

« previous php.general (#143344) next »