How to write php application to transfer file to remove server
Posted on 2004-08-19
Please advise couple of ways by using php application to transfer file to remove (linux)server.
My concern is, I didn't want to write a unix con script to do the transfer because it would be the bottonneck and hard to maintain
application (at server 1)
1 / \ 2
backup database \
(mysql) transfer to backup server (at server 2)
1. I manage to backup the db and tar it locally using php application
2. How to proceed this step ???
I have tried step 2 by using php built in function, ftp_connect( ) but doesn't work, it say need to enable ftp while install php something, the error log " PHP Fatal error: Call to undefined function: ftp_connect( )".
Your feedback and steps are greatly appreciated