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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2007-06-21 at 01:49 +0100, Graham Shaw wrote:
> 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?

You can use the glob function http://www.php.net/glob to build an array
of the files in a directory, according to a filter if needs be, and then
use a foreach to manipulate them

--Paul

All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux