Re: file import / feed

From: Date: Tue, 15 Aug 2000 04:33:06 +0000
Subject: Re: file import / feed
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11734@lists.php.net to get a copy of this message
On 15 Aug, Dieter Kneffel wrote: > Just some basic thoughts: > > I have a folder where new files are uploaded. All files have > unique names. How would I check the folder for new files > without knowing their names? > > BTW: The folder is local, I need to accomplish this using > PHPs filesystem functions. Looking at the manual, I found > no 'ls' or 'dir' equivalent so far. > > Suggestions highly appreciated, > > dk > The directory functions (www.php.net/manual/ref.dir.php) include opendir and readdir, which in combination with the file system functions (www.php.net/manual/ref.filesystem.php) will allow you to roll your own ls. In combination with checking file modification time, you should be able to do what you want. Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#11734) next »