Hi,
I need to write a script that allows a file be uploaded using PHP to a webserver via a URL and not the standard form method.

I have another console program that creates a URL like

http://127.0.0.1/upload.p?filename=C:\MyFiles\sample.txt

and I want the PHP code to upload this inputted filename and display either "SUCCESS" or "FAIL" when it is done.

I have searched the web, and all I've found seem to be the standard form upload.

Can anyone help me out ????

Adrian.

    I suspect that this is not possible, or it would be a huge security vulnerability allowing malicious sites to download arbitrary files from users' computers.

      Write a Reply...