dr_parsley Posted November 25, 2009 Share Posted November 25, 2009 Hello everyone, I've got a local webserver on our intranet and we need to regularly transfer data to our internet site. At the moment, you have to save the data as a file and then go to the web-site and select the file to upload it. It seems to me one should be able to upload directly from the local server onto the remote server with the click of a button, but I have no idea how to do it. The computer accessing the local server isn't the server itself, otherwise I can imagine generating a file and then using google gears or setting signed.applets.codebase_principal_support in firefox to auto-upload the file but a) it seems messy and b) the file is on the local server not the local client anyway. I have some very vague notion of inserting the data into a manually constructed POST request to the remote server - is it even possible with php? Any ideas would be most appreciated, Paul Ingwavuma Orphan Care http://www.orphancare.org.za/ Quote Link to comment https://forums.phpfreaks.com/topic/182904-uploading-generated-data-to-remote-server/ Share on other sites More sharing options...
JustLikeIcarus Posted November 25, 2009 Share Posted November 25, 2009 Take a look at php's ftp functions. They should be able to do what you want. Quote Link to comment https://forums.phpfreaks.com/topic/182904-uploading-generated-data-to-remote-server/#findComment-965422 Share on other sites More sharing options...
dr_parsley Posted November 25, 2009 Author Share Posted November 25, 2009 Take a look at php's ftp functions. They should be able to do what you want. Thanks! That might be better than I've currently got. I'd prefer to do an automatic POST upload though because I've got a nice progress bar going on and it could be multi-megabyte uploads... I suppose I could split up large files and do an alternative progress bar. Quote Link to comment https://forums.phpfreaks.com/topic/182904-uploading-generated-data-to-remote-server/#findComment-965429 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.