PDA

View Full Version : ftp_connect



wolfknightx
March 4th, 2002, 16:53
Does anyone know the full syntax for the ftp_connect with PHP? I need to change the defualt port it would use from 21 to something else. Any ideas? Thanks +*Wolfknight*+

kingage
March 5th, 2002, 14:45
resource ftp_connect ( string host [, int port [, int timeout]])
Returns a FTP stream on success, FALSE on error.

ftp_connect() opens up a FTP connection to the specified host. The port parameter specifies an alternate port to connect to. If it is omitted or zero, then the default FTP port, 21, will be used.

http://www.php.net/manual/en/function.ftp-connect.php

did u see the option?