• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

ftp_connect

wolfknightx

New Member
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*+
 
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?
 
Back
Top