Discussion:
Weird ftp_login() error
CDitty
2003-04-15 23:26:14 UTC
Permalink
I have a customer that is receiving the error message below. Everything is
working fine on my machine and I don't have a clue to what the error
is. Anyone have a clue?

Warning: ftp_login() expects parameter 1 to be resource, boolean given in
/import.php on line 60

Here is the code......
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);

All of the variables have been set.

CDitty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jennifer Goodie
2003-04-15 23:40:00 UTC
Permalink
Judging by the error, $conn_id is not a connection identifier returned from
ftp_connect(). Maybe you should check the results of the call to that
function.
-----Original Message-----
Sent: Tuesday, April 15, 2003 4:26 PM
Subject: [PHP] Weird ftp_login() error
I have a customer that is receiving the error message below.
Everything is
working fine on my machine and I don't have a clue to what the error
is. Anyone have a clue?
Warning: ftp_login() expects parameter 1 to be resource, boolean given in
/import.php on line 60
Here is the code......
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
All of the variables have been set.
CDitty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
CDitty
2003-04-16 00:50:09 UTC
Permalink
Thanks, but already verified. The same script works fine on other servers.

Any other ideas?

CDitty
Post by Jennifer Goodie
Judging by the error, $conn_id is not a connection identifier returned from
ftp_connect(). Maybe you should check the results of the call to that
function.
-----Original Message-----
Sent: Tuesday, April 15, 2003 4:26 PM
Subject: [PHP] Weird ftp_login() error
I have a customer that is receiving the error message below.
Everything is
working fine on my machine and I don't have a clue to what the error
is. Anyone have a clue?
Warning: ftp_login() expects parameter 1 to be resource, boolean given in
/import.php on line 60
Here is the code......
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
All of the variables have been set.
CDitty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jennifer Goodie
2003-04-16 00:53:46 UTC
Permalink
I think the key there is "other servers". Are you sure this server allows
connections?

Did you check to make sure this server works?
-----Original Message-----
Sent: Tuesday, April 15, 2003 5:50 PM
Subject: RE: [PHP] Weird ftp_login() error
Thanks, but already verified. The same script works fine on
other servers.
Any other ideas?
CDitty
Post by Jennifer Goodie
Judging by the error, $conn_id is not a connection identifier
returned from
Post by Jennifer Goodie
ftp_connect(). Maybe you should check the results of the call to that
function.
-----Original Message-----
Sent: Tuesday, April 15, 2003 4:26 PM
Subject: [PHP] Weird ftp_login() error
I have a customer that is receiving the error message below.
Everything is
working fine on my machine and I don't have a clue to what the error
is. Anyone have a clue?
Warning: ftp_login() expects parameter 1 to be resource,
boolean given in
Post by Jennifer Goodie
/import.php on line 60
Here is the code......
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
All of the variables have been set.
CDitty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
CDitty
2003-04-16 01:07:08 UTC
Permalink
From what I have seen in the past, if the server doesn't allow php ftp
connections, the error(s) are different. I I've asked my customer to try
to connect to try and connect to her server through the script. If she
connects, then i am in the clear. :)

CDitty
Post by Jennifer Goodie
I think the key there is "other servers". Are you sure this server allows
connections?
Did you check to make sure this server works?
-----Original Message-----
Sent: Tuesday, April 15, 2003 5:50 PM
Subject: RE: [PHP] Weird ftp_login() error
Thanks, but already verified. The same script works fine on
other servers.
Any other ideas?
CDitty
Post by Jennifer Goodie
Judging by the error, $conn_id is not a connection identifier
returned from
Post by Jennifer Goodie
ftp_connect(). Maybe you should check the results of the call to that
function.
-----Original Message-----
Sent: Tuesday, April 15, 2003 4:26 PM
Subject: [PHP] Weird ftp_login() error
I have a customer that is receiving the error message below.
Everything is
working fine on my machine and I don't have a clue to what the error
is. Anyone have a clue?
Warning: ftp_login() expects parameter 1 to be resource,
boolean given in
Post by Jennifer Goodie
/import.php on line 60
Here is the code......
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
All of the variables have been set.
CDitty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
CDitty
2003-04-17 00:58:12 UTC
Permalink
I'm happy to say that I found what the problem was. My customer's host has
disabled the outgoing ftp connects via php.

Thanks for helping.
Post by CDitty
From what I have seen in the past, if the server doesn't allow php ftp
connections, the error(s) are different. I I've asked my customer to try
to connect to try and connect to her server through the script. If she
connects, then i am in the clear. :)
CDitty
Post by Jennifer Goodie
I think the key there is "other servers". Are you sure this server allows
connections?
Did you check to make sure this server works?
-----Original Message-----
Sent: Tuesday, April 15, 2003 5:50 PM
Subject: RE: [PHP] Weird ftp_login() error
Thanks, but already verified. The same script works fine on other servers.
Any other ideas?
CDitty
Post by Jennifer Goodie
Judging by the error, $conn_id is not a connection identifier
returned from
Post by Jennifer Goodie
ftp_connect(). Maybe you should check the results of the call to that
function.
-----Original Message-----
Sent: Tuesday, April 15, 2003 4:26 PM
Subject: [PHP] Weird ftp_login() error
I have a customer that is receiving the error message below.
Everything is
working fine on my machine and I don't have a clue to what the error
is. Anyone have a clue?
Warning: ftp_login() expects parameter 1 to be resource,
boolean given in
Post by Jennifer Goodie
/import.php on line 60
Here is the code......
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
All of the variables have been set.
CDitty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Johan Brouwers
2003-04-19 13:01:57 UTC
Permalink
Hi,

I have the same problem: ftp_login() expects parameter 1 to be resource,

Where can I find the disabled outgoing ftp?

Johan
Post by CDitty
I'm happy to say that I found what the problem was. My customer's host has
disabled the outgoing ftp connects via php.
Thanks for helping.
Post by CDitty
From what I have seen in the past, if the server doesn't allow php ftp
connections, the error(s) are different. I I've asked my customer to try
to connect to try and connect to her server through the script. If she
connects, then i am in the clear. :)
CDitty
Post by Jennifer Goodie
I think the key there is "other servers". Are you sure this server allows
connections?
Did you check to make sure this server works?
-----Original Message-----
Sent: Tuesday, April 15, 2003 5:50 PM
Subject: RE: [PHP] Weird ftp_login() error
Thanks, but already verified. The same script works fine on other servers.
Any other ideas?
CDitty
Post by Jennifer Goodie
Judging by the error, $conn_id is not a connection identifier
returned from
Post by Jennifer Goodie
ftp_connect(). Maybe you should check the results of the call to that
function.
-----Original Message-----
Sent: Tuesday, April 15, 2003 4:26 PM
Subject: [PHP] Weird ftp_login() error
I have a customer that is receiving the error message below.
Everything is
working fine on my machine and I don't have a clue to what the error
is. Anyone have a clue?
Warning: ftp_login() expects parameter 1 to be resource,
boolean given in
Post by Jennifer Goodie
/import.php on line 60
Here is the code......
$login_result = ftp_login($conn_id, $ftp_user_name,
$ftp_user_pass);
Post by CDitty
Post by CDitty
Post by Jennifer Goodie
Post by Jennifer Goodie
All of the variables have been set.
CDitty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Continue reading on narkive:
Loading...