even if you could it when php finds the files and downloads it windows will recognize it as w/e and not let you do it. You could just do like a save as like .txt open it with notepad and then save it as w/e extension it was before.
mikeandike22
Nearly a Posting Virtuoso
1,496 posts since May 2004
Reputation Points: 33
Solved Threads: 19
well I figured your school comp has windows on it and if your running a local script to fetch a file with a certain file extension it will still stop that file from being transfered to the script. Im no expert on this just try it out goto php.net and search some commands.
mikeandike22
Nearly a Posting Virtuoso
1,496 posts since May 2004
Reputation Points: 33
Solved Threads: 19
oh yea I thought you meant locally run the script but yea that should work
mikeandike22
Nearly a Posting Virtuoso
1,496 posts since May 2004
Reputation Points: 33
Solved Threads: 19
I believe you are under estimating the power of the stupid cgi script. Otherwise you would just need a stupid php script for your purpose which is just as stupid. :)
Take a look at the stream function section of the PHP manual on php.net
It has all you need, including changing the mime-type which is most likely what the stupid cgi script checks as an extension is meaningless to the http protocol.
digital-ether
Nearly a Posting Virtuoso
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101