ID: 11000
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: FTP related
Operating system: NT 4.0
PHP Version: 4.0.4pl1
Description: ftp_connect(...) produces ftpbuf 0 "error"
Send this bug-message this morning, got two answers myself this evening:
Obviously php does not understand ftp-server-adresses in form of "127.0.0.1" or
somehow, but when I used "localhost" or the name of the server defined in the
Apache-Konfiguration the script below ran without any error-message.
Another workaround: using '127.0.0.1' ran also without problems!?!
kni
Previous Comments:
---------------------------------------------------------------------------
[2001-05-21 16:45:19] [EMAIL PROTECTED]
Have you tried with some public ftp-server?
Does it work then? And what is the full error message?
--Jani
---------------------------------------------------------------------------
[2001-05-21 15:39:36] [EMAIL PROTECTED]
I installed the PHP4 software (actual Windows binary 4.04pl1) with the actual
Apache-Server on a NT 4.0 server. The FTP-Server I try to contact runs localy on my
NT4.0 PC.
The following script
<?php
$ftp_user = "username";
$ftp_pass = "password";
$ftp_server = "127.0.0.1";
$conn_id = ftp_connect("$ftp_server");
echo $conn_id;
$login_result = ftp_login($conn_id, "$ftp_user", "$ftp_pass");
?>
causes "Warning: Unable to find ftpbuf 0 in ....".
$conn_id is null, it seems, that there is no connection.
I found some similar error-messages in the php-FAQ's, but no answer.
bye...
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=11000
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]