[PHP] link generating script

2005-04-25 Thread Ed Dorsch
I'm scripting a photo gallery page that generates links (1 through $max), sends the selected number in the url, then displays a set of photos based on the number. However, I want it to display the number of the current gallery differently than the other numbers. If the browser clicks on "3"

[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