array from folder

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

 



Can PHP generate an array based on file names in a folder?
 
For example, if I have a folder called "photos" that includes three files -- tree.jpg, house.jpg and boat.jpg -- can PHP "look" at the file and generate a variable $photos= array ("tree", "house","boat"). Any ideas for how to "sniff" out a folder to determine how many files are in it and then create an array with the file names in it?
 
Thanks,
Ed

Ed Dorsch
Development Communications
University of Oregon
541.346-0605

"You can't wait for inspiration. You have to go after it with a club."
 -Jack London

 
-- 
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