Teen Programmers Unite  
 

 

Return to forum top

Rename/Forward

Posted by JG16 [send private reply] at January 29, 2002, 09:31:42 AM

I want to make a site that the user copys an URL (Text BOX) and for the page to re direct and rename the file (To beat a *.exe, *.zip proxy server)

Posted by Psion [send private reply] at January 29, 2002, 02:28:12 PM

Great! Now do you have a question?

Posted by JG16 [send private reply] at January 29, 2002, 03:15:32 PM

help with coding

Posted by Psion [send private reply] at January 29, 2002, 08:54:49 PM

That wasn't a question....

Posted by vladimir_l [send private reply] at January 30, 2002, 01:27:22 PM

that was more of an action ... What do you need help with ?

Posted by gian [send private reply] at January 30, 2002, 09:20:48 PM

Try using PHP, because I believe it has a section in the manual for something much like this... otherwise, here's my Psuedo-code answer, based on what I could decypher of your post:

textboxvar // This is the variable holding the value from the textbox
myfile = read(textboxvar);
write("somefilename.exe", myfile);
httpheader("Location: somefilename.exe");

That is not at all feature rich, but you get the idea of the process...

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.