Eric Butera wrote:
...or you could just use pathinfo and be done with it. I work for clients. Clients shouldn't have to read a faq to upload a file.
I agree. I assumed that pathinfo simply returned the relative or absolute path of the file. After further inspection I have to stand corrected and agree that using pathinfo is the best approach. I should have probably done some more research when putting together my solution. Asking the list would've been an even better option ;-) . Thats why there's no substitute for experience or better line of work because you learn something everyday. Thanks gentleman. Time for some refactoring. :-D
Regards Warren // -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php