themistral Posted March 1, 2012 Share Posted March 1, 2012 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! Quote Link to comment https://forums.phpfreaks.com/topic/258039-sending-data-between-servers/ Share on other sites More sharing options...
kicken Posted March 1, 2012 Share Posted March 1, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/258039-sending-data-between-servers/#findComment-1322710 Share on other sites More sharing options...
litebearer Posted March 1, 2012 Share Posted March 1, 2012 a possible start... http://php.net/manual/en/features.remote-files.php edit: Oops my fingers were too slow Quote Link to comment https://forums.phpfreaks.com/topic/258039-sending-data-between-servers/#findComment-1322711 Share on other sites More sharing options...
themistral Posted March 1, 2012 Author Share Posted March 1, 2012 Thanks for the help guys! I will have a look into all of those options! Quote Link to comment https://forums.phpfreaks.com/topic/258039-sending-data-between-servers/#findComment-1322778 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.