Re: How can I auto upload a file to the server?

From: Date: Wed, 24 Sep 2003 02:56:29 +0000
Subject: Re: How can I auto upload a file to the server?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-163682@lists.php.net to get a copy of this message
You might look at SCP using the PuTTY SCP or another SSH client to securely upload the file. You could automate it in a batch file and make a short-cut to the batch file. Doing this over the web is not a good method like John said. If you use SCP you can setup an SSH key so that you are not prompted for a password, SCP was designed for this type of problem. Jason John W. Holmes wrote:
jane wrote:
I have a .txt file on my local Windows 2000 box that i want uploaded to a remote L.A.M.P. server with only one click. I want to have a link (shortcut) on my desktop when clicked it launches a web browser loaded with a remote .php script that automatically goes into C:\data\upload_me.txt and uploads "upload_me.txt" I know how to upload files using php with a "browse to file" html form, but i want to skip the form and have the file just upload automatically when the script is loaded. I don't know how to make the .php script automatically grab the file from my local box and upload it without any user intervention.
You can't. That would be a horrible security violation. Think of a different method.


« previous php.general (#163682) next »