Hi All,
This is the first time I'm working with FTP functions in PHP. I have to create a link to send a .sql file to another server using its' FTP logins.
I used ftp_put() function in the following way
ftp_put($connection, $file_name_1, $file_name_2, FTP_ASCII);
It works perfectly in my localhost. I'm using XAMPP 1.7.3. It includes Apache 2.2.14 (IPv6 enabled) and PHP 5.3.1.
But in the server it gives following 2 warnings.
Warning: ftp_put() [function.ftp-put]: listen() failed: Permission denied (13) in <php file name> on line 47
Warning: ftp_put() [function.ftp-put]: TYPE is now ASCII in <php file name> on line 47 resource(54) of type (FTP Buffer) bool(true) bool(false)
(Line 47 contains the ftp_put function call)
The server that I'm using to host the site, contains PHP 5.2.12. I couldn't find the Apache version in the server. :(
Please can anyone help me out with this problem :( ?
Thanks a lot for taking your time to read this...
Cheers
Niranga