Bug #10033 Updated: Function file does not work with remote files
| From: | sniper@php.net | Date: | Mon, 20 Aug 2001 15:59:21 +0000 |
| Subject: | Bug #10033 Updated: Function file does not work with remote files | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-63858@lists.php.net to get a copy of this message | ||
ID: 10033
Updated by: sniper
Reported By: raymondc@quik.com
Status: Feedback
Bug Type: HTTP related
Operating System: aix 4.3.3
PHP Version: 4.0.4pl1
New Comment:
No feedback. Reopen if you still have this problem
with PHP 4.0.7 (soon to be released) or with latest CVS
snapshot from http://snaps.php.net/
Previous Comments:
------------------------------------------------------------------------
[2001-07-21 21:43:15] andy@php.net
See if this works (this and EXACTLY this)
<?php
$carjunk=file("http://www.php.net/");
for ($i=0;$i<count($carjunk);$i++){
echo $carjunk[$i];
}
?>
If this doesn't work, make sure you DNS/Internet Server is
running correctly.
------------------------------------------------------------------------
[2001-03-29 15:34:55] raymondc@quik.com
Hi Jani,
Thank you for your suggestion.
I have just tried the lates version php4-latest from http://snaps.php.net on my AIX 4.3.3 box, I got the same
error when using function 'file': bad file number.
Raymond
------------------------------------------------------------------------
[2001-03-29 11:29:38] sniper@php.net
Could you please try the latest CVS snapshot from http://snaps.php.net/ ?
--Jani
------------------------------------------------------------------------
[2001-03-27 18:00:39] raymondc@quik.com
script:
<?php
$jnk= file ("http://www.php.net");
?>
Error: bad file number
<?php
$jnk = file ("myfile");
echo "works fine";
?>
Options compilated with PHP:
CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure
--with-mysql=/usr/local/mysql --with-gd --enable-track-vars
--with-apache=/usr/local/apache_1.3.12
Notes: I tried to use different compilers such as gcc, cc or xlC_r, I got the same error about file
function (bad file number). With the same option of
compilateion, the script works in LINUX.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=10033&edit=1