September 4th, 2002, 04:11 AM
connecting to a secure ftp server
anybody here knows how to connect to a secure ftp server using php.
i've been trying to use php's ftp functions, but i cant seem to get it to work. my script always times out (Fatal error: Maximum execution time of 30 seconds exceeded in ...) at the connection line - ftp_connect() - even if i change the max time.
September 4th, 2002, 05:59 AM
The built in ftp functions do not support that. You'll have to use curl
September 4th, 2002, 07:28 AM
thank for the tip. i've been reading on the curl functions at http://curl.haxx.se i only see ftp functions. will that do it or do i need to use some other function?
Last edited by roninblade; September 4th, 2002 at 07:45 AM.
September 4th, 2002, 01:33 PM
Well, it doesn't directly support SFTP. You would have to open a SSH tunnel (using ssh -L localport:remotehost:remoteport) then opening a connection to the local port with FTP. Of course the remote host has to be configured for this as well.
September 5th, 2002, 02:49 AM
can anybody point me to any good articles/docs that discusses cURL with php in detail. i'd like to play around with the cURL functions more but i'm a bit pressed for time on this project.