Jump to content

Uploading generated data to remote server


dr_parsley

Recommended Posts

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/

 

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.