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

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

 



> -----Original Message-----
> From: Graham Shaw [mailto:zaknafien@xxxxxxxxxxxxxxxx]
>
> 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


[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