PHP 4.0 Bug #10274 Updated: I get an errormessage every time i use the ftp_support
| From: | sniper@php.net | Date: | Wed, 11 Apr 2001 00:47:08 +0000 |
| Subject: | PHP 4.0 Bug #10274 Updated: I get an errormessage every time i use the ftp_support | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51411@lists.php.net to get a copy of this message | ||
ID: 10274
Updated by: sniper
Reported By: redplayer@t-online.de
Old-Status: Open
Status: Feedback
Bug Type: FTP related
Assigned To:
Comments:
Could you please add a complete script into this bug report?
This one seems to be buggy and missing some parts?
Eg. after $ftp_port = 21 <--missing ;
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-04-10 17:46:11] redplayer@t-online.de
This is my skript:
$ftp_user = "anonymous";
$ftp_pass = "anonymous";
$ftp_server = "redplayer.dynodns.net";
$ftp_port = 21
$conn_id = ftp_connect($ftp_server, $ftp_port);
$login_result = ftp_login($conn_id, $ftp_user, $ftp_pass);
if ((!$conn_id) || (!$login_result))
{
echo "Ftp connection has failed!<br>n";
echo "Attempted to connect to $ftp_server for user $ftp_user";
die;
}
else
{
echo "Connected to $ftp_server, for user $ftp_user";
$dir=ftp_pwd($connid);
$list=Array();
$list=ftp_nlist($connid, "$dir");
$i=0;
do
{
echo $list[$i], "";
$i++;
}
while($list[$i]);
}
// END
Every time I want to start this skript i get an errormessage!
Here is the hole output:
Connected to redplayer.dynodns.net, for user anonymous
Warning: Unable to find ftpbuf 0 in /Data/www/ftpconn.php on line 36
Warning: Unable to find ftpbuf 0 in /Data/www/ftpconn.php on line 38
So, please mail me and say what I did wrong if it is not a bug!
Thanks
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10274&edit=2