Re: [PHP] array from folder

2005-04-26 Thread Petar Nedyalkov
On Monday 25 April 2005 20:24, Ed Dorsch wrote: 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,

Re: [PHP] array from folder

2005-04-26 Thread Mark Sargent
Ed Dorsch wrote: 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

Re: [PHP] array from folder

2005-04-26 Thread Mark Sargent
Mark Sargent wrote: Ed Dorsch wrote: 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).

[PHP] array from folder

2005-04-25 Thread Ed Dorsch
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

RE: [PHP] array from folder

2005-04-25 Thread Jay Blanchard
[snip] 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

Re: [PHP] array from folder

2005-04-25 Thread Jason Barnett
Jay Blanchard wrote: [snip] 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

Re: [PHP] array from folder

2005-04-25 Thread Kim Briggs
I have a sloppy, insecure script that does this posted on the web, which I use at home to make pages for my personal homepage: http://kimbriggs.com/computers/computer-software/create-html-table.txt You seem to be passing variables programmatically. This is how I use it

Re: [PHP] array from folder

2005-04-25 Thread Richard Lynch
On Mon, April 25, 2005 10:54 am, Jason Barnett said: Jay Blanchard wrote: [snip] 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