|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-03-27 18:00 UTC] raymondc at quik dot 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 18:00:01 2025 UTC |
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.