The exact mechanism you mentioned cannot be easily created with php. What you can do is the install PHP command line version on your system and upload directly with that using a php script completly bypassing the browser. In that case though you will need to create write the post data using your own script.
In other words your php script opens the upload_me.txt files, opens an http connection to the server and writes the contents of the file as multipart/form-data. The browser does not come into the picture.
all the best
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.
Any suggestions?
Thanks for you help, cheyrl.
-- http://www.radinks.com/upload Drag and Drop File Uploader.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php