Hey, I have my system set so that it makes some bull**** name like iwl16851856186.wgc and I want it to temp rename the file so it will be saved as somethingVSsomething.wgc when someone downloads its help 🙂
Take a look at the copy function:
http://us3.php.net/manual/en/function.copy.php
The other approach is to open the file and read the contents. Send the right content-type header to the client. And send another header specifying the file name you're sending. This avoids having to rename the file all the time on your machine.