Eric Butera wrote:
Who says every file will have an extension? Who says they're all .+3 chars? When I first started php I tried that and it failed in a lot of places.
I've also run into that problem in the past. The way that I could work around all these issues was to document naming conventions for the files and validate these before using the regex to obtain the necessary information.
Regards Warren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php