Problems with FTP

 
Post new topic   Reply to topic    Aprelium Forum Index -> Networking Issues
View previous topic :: View next topic  
Author Message
thelester
-


Joined: 13 Jun 2002
Posts: 1

PostPosted: Thu Jun 13, 2002 8:38 am    Post subject: Problems with FTP Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Jun 13, 2002 1:55 pm    Post subject: Re: Problems with FTP Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Networking Issues All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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


Powered by phpBB phpBB Group