[PHP-DEV] Bug #13868 Updated: Unable to find ftpbuf 1 in ....

2001-10-31 Thread j . parree

ID: 13868
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: FTP related
Operating System: Suse 7.1  -  oldwotan 2.4.3 #1
PHP Version: 4.0.4pl1
New Comment:

Your site has some strange loading problems.
Sorry, for posting this for three times.

Previous Comments:


[2001-10-31 06:16:19] [EMAIL PROTECTED]

A working example:
This example should download an html-file.

";
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
"error";
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1->GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2->GetViaFTP();// this causes the problem

?>

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);





[2001-10-31 06:15:39] [EMAIL PROTECTED]

A working example:
This example should download an html-file.

";
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
"error";
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1->GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2->GetViaFTP();// this causes the problem

?>

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);





[2001-10-31 06:13:56] [EMAIL PROTECTED]

A working example:
This example should download an html-file.

";
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
"error";
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1->GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2->GetViaFTP();// this causes the problem

?>

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);





[2001-10-30 18:05:33] [EMAIL PROTECTED]

Please add a SHORT but complete and self-containing script
that uses some public ftp server. And with which this can
be reproduced. 

--Jani




[2001-10-30 07:14:44] [EMAIL PROTECTED]

We are getting the following undocumented error:

Warning: Unable to find ftpbuf 1 in 
/usr/local/httpd/htdocs/sportshop/admin/modules/porter/class/classProductImport.php on 
line 18
(Line:  if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY)); )


This script is also beeing called from another script
on the same mashine, and there it works.

(We could nor get any information from search engines
or any of the php-mailing lists.)
-
In script (part of a class):

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn && $ftpLogin){
$fp = fopen($tmpDataDir . "/" . trim($docName), "w");
echo "ftp conn : " . $ftpConn . "";
if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY));
fclose($fp);
}


-
-> modules in php ... :

'./configure' 
'--prefix=/usr' 
'--bindir=/usr/bin' 
'--libdir=/usr/lib' 
'--with-config-file-path=/etc' 
'--with-exec-dir=%{libdir}/php/bin' 
'--with-pgsql=/usr' 
'--with-mysql=/usr' 
'--with-gd=yes' 
'--with-tiff-dir=/usr' 
'--with-jpeg-dir=/usr' 
'--with-png-dir=/usr' 
'--with-xpm-dir=/usr/X11R6' 
'--with-pdflib=/usr' 
'--with-ldap=yes' 
'--with-imap=yes' 
'--with-imap-ssl' 
'--with-zlib=yes' 
'--with-bz2' 
'--with-xml' 
'--with-ttf' 
'--with-t1lib' 
'--with-mcal=/usr/include/mcal/' 
'--with-sablot' '--with-readline' 
'--with-ftp' 
'--with-ndbm' 
'--with-gdbm' 
'--with-mcrypt' 
'--with-gettext' 
'--with-curl' 
'--with-mm' 
'--with-gd=yes' 
'--with-qtdom=/usr/lib/qt-2.2.1/' 
'--enable-versioning' 
'--enable-yp' 
'--enable-bcmath' 
'--enable-trans-sid' 
'--enable-inline-optimization' 
'--enable-track-vars' 
'--enable-magic-quotes' 
'--enable-saf

[PHP-DEV] Bug #13868 Updated: Unable to find ftpbuf 1 in ....

2001-10-31 Thread j . parree

ID: 13868
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: FTP related
Operating System: Suse 7.1  -  oldwotan 2.4.3 #1
PHP Version: 4.0.4pl1
New Comment:

A working example:
This example should download an html-file.

";
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
"error";
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1->GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2->GetViaFTP();// this causes the problem

?>

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);



Previous Comments:


[2001-10-31 06:15:39] [EMAIL PROTECTED]

A working example:
This example should download an html-file.

";
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
"error";
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1->GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2->GetViaFTP();// this causes the problem

?>

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);





[2001-10-31 06:13:56] [EMAIL PROTECTED]

A working example:
This example should download an html-file.

";
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
"error";
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1->GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2->GetViaFTP();// this causes the problem

?>

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);





[2001-10-30 18:05:33] [EMAIL PROTECTED]

Please add a SHORT but complete and self-containing script
that uses some public ftp server. And with which this can
be reproduced. 

--Jani




[2001-10-30 07:14:44] [EMAIL PROTECTED]

We are getting the following undocumented error:

Warning: Unable to find ftpbuf 1 in 
/usr/local/httpd/htdocs/sportshop/admin/modules/porter/class/classProductImport.php on 
line 18
(Line:  if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY)); )


This script is also beeing called from another script
on the same mashine, and there it works.

(We could nor get any information from search engines
or any of the php-mailing lists.)
-
In script (part of a class):

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn && $ftpLogin){
$fp = fopen($tmpDataDir . "/" . trim($docName), "w");
echo "ftp conn : " . $ftpConn . "";
if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY));
fclose($fp);
}


-
-> modules in php ... :

'./configure' 
'--prefix=/usr' 
'--bindir=/usr/bin' 
'--libdir=/usr/lib' 
'--with-config-file-path=/etc' 
'--with-exec-dir=%{libdir}/php/bin' 
'--with-pgsql=/usr' 
'--with-mysql=/usr' 
'--with-gd=yes' 
'--with-tiff-dir=/usr' 
'--with-jpeg-dir=/usr' 
'--with-png-dir=/usr' 
'--with-xpm-dir=/usr/X11R6' 
'--with-pdflib=/usr' 
'--with-ldap=yes' 
'--with-imap=yes' 
'--with-imap-ssl' 
'--with-zlib=yes' 
'--with-bz2' 
'--with-xml' 
'--with-ttf' 
'--with-t1lib' 
'--with-mcal=/usr/include/mcal/' 
'--with-sablot' '--with-readline' 
'--with-ftp' 
'--with-ndbm' 
'--with-gdbm' 
'--with-mcrypt' 
'--with-gettext' 
'--with-curl' 
'--with-mm' 
'--with-gd=yes' 
'--with-qtdom=/usr/lib/qt-2.2.1/' 
'--enable-versioning' 
'--enable-yp' 
'--enable-bcmath' 
'--enable-trans-sid' 
'--enable-inline-optimization' 
'--enable-track-vars' 
'--enable-magic-quotes' 
'--enable-safe-mode' 
'--enable-sockets' 
'--enable-sysvsem' 
'--enable-sysvshm' 
'--enable-shmop' 
'--enable-calendar' 
'--enable-exif' 
'--enable-ftp' 
'--enable-memory-limit' 
'--enable-wddx' 
'--enable-

[PHP-DEV] Bug #13868 Updated: Unable to find ftpbuf 1 in ....

2001-10-31 Thread j . parree

ID: 13868
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: FTP related
Operating System: Suse 7.1  -  oldwotan 2.4.3 #1
PHP Version: 4.0.4pl1
New Comment:

A working example:
This example should download an html-file.

";
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
"error";
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1->GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2->GetViaFTP();// this causes the problem

?>

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);



Previous Comments:


[2001-10-31 06:13:56] [EMAIL PROTECTED]

A working example:
This example should download an html-file.

";
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
"error";
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1->GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2->GetViaFTP();// this causes the problem

?>

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);





[2001-10-30 18:05:33] [EMAIL PROTECTED]

Please add a SHORT but complete and self-containing script
that uses some public ftp server. And with which this can
be reproduced. 

--Jani




[2001-10-30 07:14:44] [EMAIL PROTECTED]

We are getting the following undocumented error:

Warning: Unable to find ftpbuf 1 in 
/usr/local/httpd/htdocs/sportshop/admin/modules/porter/class/classProductImport.php on 
line 18
(Line:  if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY)); )


This script is also beeing called from another script
on the same mashine, and there it works.

(We could nor get any information from search engines
or any of the php-mailing lists.)
-
In script (part of a class):

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn && $ftpLogin){
$fp = fopen($tmpDataDir . "/" . trim($docName), "w");
echo "ftp conn : " . $ftpConn . "";
if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY));
fclose($fp);
}


-
-> modules in php ... :

'./configure' 
'--prefix=/usr' 
'--bindir=/usr/bin' 
'--libdir=/usr/lib' 
'--with-config-file-path=/etc' 
'--with-exec-dir=%{libdir}/php/bin' 
'--with-pgsql=/usr' 
'--with-mysql=/usr' 
'--with-gd=yes' 
'--with-tiff-dir=/usr' 
'--with-jpeg-dir=/usr' 
'--with-png-dir=/usr' 
'--with-xpm-dir=/usr/X11R6' 
'--with-pdflib=/usr' 
'--with-ldap=yes' 
'--with-imap=yes' 
'--with-imap-ssl' 
'--with-zlib=yes' 
'--with-bz2' 
'--with-xml' 
'--with-ttf' 
'--with-t1lib' 
'--with-mcal=/usr/include/mcal/' 
'--with-sablot' '--with-readline' 
'--with-ftp' 
'--with-ndbm' 
'--with-gdbm' 
'--with-mcrypt' 
'--with-gettext' 
'--with-curl' 
'--with-mm' 
'--with-gd=yes' 
'--with-qtdom=/usr/lib/qt-2.2.1/' 
'--enable-versioning' 
'--enable-yp' 
'--enable-bcmath' 
'--enable-trans-sid' 
'--enable-inline-optimization' 
'--enable-track-vars' 
'--enable-magic-quotes' 
'--enable-safe-mode' 
'--enable-sockets' 
'--enable-sysvsem' 
'--enable-sysvshm' 
'--enable-shmop' 
'--enable-calendar' 
'--enable-exif' 
'--enable-ftp' 
'--enable-memory-limit' 
'--enable-wddx' 
'--enable-filepro' 
'--enable-dbase' 
'--enable-ctype' 
'--enable-debug' 
'--enable-force-cgi-redirect' 
'--enable-discard-path' 
'--enable-sigchild' 
'--enable-gd-imgstrttf' 
'--with-openssl' 
'--with-swf=./dist/' 
'--with-apxs=/usr/sbin/apxs' 
'i386-suse-linux-gnu'


-
Other information:

- Total script processing time = 0.03413258889
- FTP-Settings on the remotehost were checked !





Edit this bug report at http://bugs.php.net/?id=13868&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #13868 Updated: Unable to find ftpbuf 1 in ....

2001-10-31 Thread j . parree

ID: 13868
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: FTP related
Operating System: Suse 7.1  -  oldwotan 2.4.3 #1
PHP Version: 4.0.4pl1
New Comment:

A working example:
This example should download an html-file.

";
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
"error";
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1->GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2->GetViaFTP();// this causes the problem

?>

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);



Previous Comments:


[2001-10-30 18:05:33] [EMAIL PROTECTED]

Please add a SHORT but complete and self-containing script
that uses some public ftp server. And with which this can
be reproduced. 

--Jani




[2001-10-30 07:14:44] [EMAIL PROTECTED]

We are getting the following undocumented error:

Warning: Unable to find ftpbuf 1 in 
/usr/local/httpd/htdocs/sportshop/admin/modules/porter/class/classProductImport.php on 
line 18
(Line:  if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY)); )


This script is also beeing called from another script
on the same mashine, and there it works.

(We could nor get any information from search engines
or any of the php-mailing lists.)
-
In script (part of a class):

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn && $ftpLogin){
$fp = fopen($tmpDataDir . "/" . trim($docName), "w");
echo "ftp conn : " . $ftpConn . "";
if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY));
fclose($fp);
}


-
-> modules in php ... :

'./configure' 
'--prefix=/usr' 
'--bindir=/usr/bin' 
'--libdir=/usr/lib' 
'--with-config-file-path=/etc' 
'--with-exec-dir=%{libdir}/php/bin' 
'--with-pgsql=/usr' 
'--with-mysql=/usr' 
'--with-gd=yes' 
'--with-tiff-dir=/usr' 
'--with-jpeg-dir=/usr' 
'--with-png-dir=/usr' 
'--with-xpm-dir=/usr/X11R6' 
'--with-pdflib=/usr' 
'--with-ldap=yes' 
'--with-imap=yes' 
'--with-imap-ssl' 
'--with-zlib=yes' 
'--with-bz2' 
'--with-xml' 
'--with-ttf' 
'--with-t1lib' 
'--with-mcal=/usr/include/mcal/' 
'--with-sablot' '--with-readline' 
'--with-ftp' 
'--with-ndbm' 
'--with-gdbm' 
'--with-mcrypt' 
'--with-gettext' 
'--with-curl' 
'--with-mm' 
'--with-gd=yes' 
'--with-qtdom=/usr/lib/qt-2.2.1/' 
'--enable-versioning' 
'--enable-yp' 
'--enable-bcmath' 
'--enable-trans-sid' 
'--enable-inline-optimization' 
'--enable-track-vars' 
'--enable-magic-quotes' 
'--enable-safe-mode' 
'--enable-sockets' 
'--enable-sysvsem' 
'--enable-sysvshm' 
'--enable-shmop' 
'--enable-calendar' 
'--enable-exif' 
'--enable-ftp' 
'--enable-memory-limit' 
'--enable-wddx' 
'--enable-filepro' 
'--enable-dbase' 
'--enable-ctype' 
'--enable-debug' 
'--enable-force-cgi-redirect' 
'--enable-discard-path' 
'--enable-sigchild' 
'--enable-gd-imgstrttf' 
'--with-openssl' 
'--with-swf=./dist/' 
'--with-apxs=/usr/sbin/apxs' 
'i386-suse-linux-gnu'


-
Other information:

- Total script processing time = 0.03413258889
- FTP-Settings on the remotehost were checked !





Edit this bug report at http://bugs.php.net/?id=13868&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #13868: Unable to find ftpbuf 1 in ....

2001-10-30 Thread j . parree

From: [EMAIL PROTECTED]
Operating system: Suse 7.1  -  oldwotan 2.4.3 #1
PHP version:  4.0.4pl1
PHP Bug Type: FTP related
Bug description:  Unable to find ftpbuf 1 in 

We are getting the following undocumented error:

Warning: Unable to find ftpbuf 1 in
/usr/local/httpd/htdocs/sportshop/admin/modules/porter/class/classProductImport.php
on line 18
(Line:  if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY)); )


This script is also beeing called from another script
on the same mashine, and there it works.

(We could nor get any information from search engines
or any of the php-mailing lists.)
-
In script (part of a class):

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn && $ftpLogin){
$fp = fopen($tmpDataDir . "/" . trim($docName), "w");
echo "ftp conn : " . $ftpConn . "";
if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY));
fclose($fp);
}


-
-> modules in php ... :

'./configure' 
'--prefix=/usr' 
'--bindir=/usr/bin' 
'--libdir=/usr/lib' 
'--with-config-file-path=/etc' 
'--with-exec-dir=%{libdir}/php/bin' 
'--with-pgsql=/usr' 
'--with-mysql=/usr' 
'--with-gd=yes' 
'--with-tiff-dir=/usr' 
'--with-jpeg-dir=/usr' 
'--with-png-dir=/usr' 
'--with-xpm-dir=/usr/X11R6' 
'--with-pdflib=/usr' 
'--with-ldap=yes' 
'--with-imap=yes' 
'--with-imap-ssl' 
'--with-zlib=yes' 
'--with-bz2' 
'--with-xml' 
'--with-ttf' 
'--with-t1lib' 
'--with-mcal=/usr/include/mcal/' 
'--with-sablot' '--with-readline' 
'--with-ftp' 
'--with-ndbm' 
'--with-gdbm' 
'--with-mcrypt' 
'--with-gettext' 
'--with-curl' 
'--with-mm' 
'--with-gd=yes' 
'--with-qtdom=/usr/lib/qt-2.2.1/' 
'--enable-versioning' 
'--enable-yp' 
'--enable-bcmath' 
'--enable-trans-sid' 
'--enable-inline-optimization' 
'--enable-track-vars' 
'--enable-magic-quotes' 
'--enable-safe-mode' 
'--enable-sockets' 
'--enable-sysvsem' 
'--enable-sysvshm' 
'--enable-shmop' 
'--enable-calendar' 
'--enable-exif' 
'--enable-ftp' 
'--enable-memory-limit' 
'--enable-wddx' 
'--enable-filepro' 
'--enable-dbase' 
'--enable-ctype' 
'--enable-debug' 
'--enable-force-cgi-redirect' 
'--enable-discard-path' 
'--enable-sigchild' 
'--enable-gd-imgstrttf' 
'--with-openssl' 
'--with-swf=./dist/' 
'--with-apxs=/usr/sbin/apxs' 
'i386-suse-linux-gnu'


-
Other information:

- Total script processing time = 0.03413258889
- FTP-Settings on the remotehost were checked !
-- 
Edit bug report at: http://bugs.php.net/?id=13868&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11533 Updated: Error during fopen of remote-file-result

2001-06-18 Thread j . parree

ID: 11533
User Update by: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Filesystem function related
Operating system: WINNT 4.0 - Service Pack 6a, IIS
PHP Version: 4.0.4pl1
Description: Error during fopen of remote-file-result



Previous Comments:
---

[2001-06-18 06:22:08] [EMAIL PROTECTED]
Script:

$query = str_replace("+", " ", $query);
$query = str_replace("#", " ", $query);
$query = str_replace("&", " ", $query);
$query = str_replace(";", " ", $query);

$query = str_replace(" ", "+", $query);


$file1 = fopen("http://www.google.com/search?q=$query";, "r");
$rf1 = fread($file1, 4);
fclose($file1);
$grab1 = ereg("(.*)", $rf1, $printing1);
$printing1[1] = str_replace("http://www.google.com/";, 
$printing1[1]);
$printing1[1] = str_replace("http://www.google.com/";, 
$printing1[1]);
 if ($printing1[1] == "") {
echo "   Keine 
Resultate";
 } else {
echo $printing1[1];
 }
---
The System:
- php 4.0.4pl1 (bin 32, WINNT4.0, optionpack installed)
- mysql (not important for this issue)
- IIS4
(- IBM Netfinity 3500 M10)
---
This script works fine on Linux, but not on this NT mashine.

---


Full Bug description available at: http://bugs.php.net/?id=11533


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11533: Error during fopen of remote-file-result

2001-06-18 Thread j . parree

From: [EMAIL PROTECTED]
Operating system: WINNT 4.0 - Service Pack 6a, IIS4, option pack installed
PHP version:  4.0.4pl1
PHP Bug Type: Filesystem function related
Bug description:  Error during fopen of remote-file-result

Script:

$query = str_replace("+", " ", $query);
$query = str_replace("#", " ", $query);
$query = str_replace("&", " ", $query);
$query = str_replace(";", " ", $query);

$query = str_replace(" ", "+", $query);


$file1 = fopen("http://www.google.com/search?q=$query";, "r");
$rf1 = fread($file1, 4);
fclose($file1);
$grab1 = ereg("(.*)", $rf1, $printing1);
$printing1[1] = str_replace("http://www.google.com/";, 
$printing1[1]);
$printing1[1] = str_replace("http://www.google.com/";, 
$printing1[1]);
 if ($printing1[1] == "") {
echo "   Keine 
Resultate";
 } else {
echo $printing1[1];
 }
---
The System:
- php 4.0.4pl1 (bin 32, WINNT4.0, optionpack installed)
- mysql (not important for this issue)
- IIS4
(- IBM Netfinity 3500 M10)
---
This script works fine on Linux, but not on this NT mashine.


-- 
Edit Bug report at: http://bugs.php.net/?id=11533&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]