Is there a function that will do this automatically or do I have to constantly strrpos for '.'?
TIA
Sean Shrum
pathinfo() is what you are looking for; returns an array, with the extension being one of the elements