Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Loop to list files w/o ext

Is there a way to loop thru files in a folder, and list them without their extension?

See http://www.alistapart.com/stories/phpswitch/ , for that I would need a list of each file without the extension. Though the info in that page can be done with the ext as well...

Thanks

Bob
Wednesday, February 19, 2003

I guess that this can be done for articles, if I'd write the names in field. But can the foreach loop be done for images or other files types?

Thanks

Bob
Wednesday, February 19, 2003

CityScript only works on articles for now.

tk
Wednesday, February 19, 2003

*  Recent Topics

*  Fog Creek Home