Ask about general coding issues or problems here.
3 posts • Page 1 of 1
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.
Who is online
Users browsing this forum: Google Feedfetcher and 7 guests