View previous topic :: View next topic |
Author |
Message |
thelester -
Joined: 13 Jun 2002 Posts: 1
|
Posted: Thu Jun 13, 2002 8:38 am Post subject: Problems with FTP |
|
|
Problem with FTP Communication in PHP :
My Code in PHP file:
.....
$xxx = ftp_connect("171.2.5.119",80,3);
ftp_set_option($xxx, FTP_TIMEOUT_SEC, 10);
.....
Browser Response (IE6) :
Warning: ftp_set_option() expects parameter 1 to be resource, boolean given in (.....) on line 22
What's problem ?
Thank you. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jun 13, 2002 1:55 pm Post subject: Re: Problems with FTP |
|
|
thelester wrote: | Problem with FTP Communication in PHP :
My Code in PHP file:
.....
$xxx = ftp_connect("171.2.5.119",80,3);
ftp_set_option($xxx, FTP_TIMEOUT_SEC, 10);
.....
Browser Response (IE6) :
Warning: ftp_set_option() expects parameter 1 to be resource, boolean given in (.....) on line 22
What's problem ?
Thank you. |
The standard FTP port is 21 and not 80. The timeout value (3) is also too low (you should raise it to 10). So we recommend using
Code: |
$xxx = ftp_connect("171.2.5.119",21,10);
|
_________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|