Jay59express
Senior member
Hi, I need to be able to take a filename, say test.tar.gz and rename it to test.tgz. So I would like to be able to strip off the extension(s), check to see if they are .tar.gz, and if they are, create the file test.tgz. Anyone got some code to do this? Tried using the examples under basename at php.net but could not find the right one.
Thanks!
Thanks!