garytan
asked on
How to write php application to transfer file to remove server
Hi
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
Gary
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
Gary
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
splitpoints ushastry and hernst42
If all went fine.. confirm this by running this script.. you will see ftp is enabled this time
<?php
phpinfo();
?>
also check this url..here you will find how to upload/download using php.
http://us3.php.net/ftp