Re: open a file in a folder without knowing the filename

From: Date: Thu, 21 Jun 2007 16:21:14 +0000
Subject: Re: open a file in a folder without knowing the filename
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-257560@lists.php.net to get a copy of this message
On 6/21/07, Daniel Brown <parasane@gmail.com> wrote:
On 6/21/07, Edward Kay <edward@labhut.com> wrote:
-----Original Message----- From: Graham Shaw [mailto:zaknafien@blueyonder.co.uk] I'm probably missing something really obvious here but how would I go about opening a file or multiple files in a folder without knowing the filename ahead of time?
Read the files in the directory and place the names of the ones you want into an array using the directory functions: http://uk.php.net/manual/en/ref.dir.php Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php DISCLAIMER: Once again, I'm programming in the email window without testing the code at all. In theory, it should work, but there's probably a bug somewhere. <code snip>
Daniel P. Brown
I like that disclaimer :) I write a lot of code for this list in my mail.. Tijnema

« previous php.general (#257560) next »