Warning: Wrong parameter count for ftp_connect()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jose Arce
Forum Commoner
Posts: 37
Joined: Wed May 01, 2002 5:05 pm

Warning: Wrong parameter count for ftp_connect()

Post by Jose Arce »

i'm gettin the error:Warning: Wrong parameter count for ftp_connect()

My sintax is: $conexion = ftp_connect($server, 21, 2);

Anything wrong?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

from ftp_connect
The timeout parameter specifies the timeout for all subsequent network operations. If omitted, the default value is 90 seconds. The timeout can be changed and queried anytime with ftp_set_option() and ftp_get_option().
Note: This parameter is only available in CVS.
Jose Arce
Forum Commoner
Posts: 37
Joined: Wed May 01, 2002 5:05 pm

Post by Jose Arce »

$server is an ip adress...is 213.221.108.36
Jose Arce
Forum Commoner
Posts: 37
Joined: Wed May 01, 2002 5:05 pm

Post by Jose Arce »

got it...thx!
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

sorry, edited my post after I read your question again and though I was fast enough. I wasn't :oops:
Post Reply