Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reading filenames into an array

Status
Not open for further replies.

csbdeady

Programmer
May 18, 2002
119
GB
Hi there

I've a directory of files (exciting eh?) that I need in an array thus:

/a.php
/b.php
/c.php
...

Run some code to dynamically pull in the file names above and then:

array element 0 = a.php
array element 1 = b.php
...

Any thoughts?

Many thanks!
-Colin
 
...and 2 seconds after submitting I have a brainwave and look up "readdir" in the PHP manual... hey presto!

:)

All sorted
-Colin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top