From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.0CVS-2002-05-22
PHP Bug Type:     *Directory/Filesystem functions
Bug description:  Warning: file("http://www.php.net";) - Bad file descriptor in 
/var/www/.....

The code below works fine, I have it running on a Redhat Linux 7.1 machine
with PHP 4.04pl1.  The problem is that it does not work on a Cobalt Raq4i
with PHP 4.03pl1 or PHP 4.06.  I have checked Cobalt's website for any
info regarding this issue but have found nothing, just links back to
www.php.net  Does anyone know where the problem lays?

Thank You


<?

//open a file and print each line
$myFile = file ("http://www.php.net";);
for ($index = 0; $index < count($myFile); $index++)
    {
        print ($myFile[$index]);
    }
?>
-- 
Edit bug report at http://bugs.php.net/?id=17368&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17368&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17368&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17368&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17368&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17368&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17368&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17368&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17368&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17368&r=globals

Reply via email to