Jump to content

Sending data between servers


themistral

Recommended Posts

Hi there,

 

Everyday I run a php script on a database to extract certain information I need and save to a text file.

I then need to be able to send this file to another server without needing for manual intervention.

i.e. the script will integrate sending the file to another server.

 

Can anyone point me in the right direction to get started?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/258039-sending-data-between-servers/
Share on other sites

What sort of options do you have for moving the data?

 

FTP?  PHP has [m=ftp]ftp functions[/m] you can use

HTTP? You can use the [m=curl]curl functions[/m] to simulate a POST request and send the data as a file upload.

SSH? There are [m=ssh2]SSH functions[/m] that will let you do things like sftp/scp or hack it with just a shell.

 

 

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.