some function in PHP 3.0.15 doesn't work

From: Date: Tue, 30 Jan 2001 12:27:03 +0000
Subject: some function in PHP 3.0.15 doesn't work
Groups: php.dev 
Request: Send a blank email to php-dev+get-45367@lists.php.net to get a copy of this message
I installed PHP3.0.15 . I noted that some function doesn't work properly. For example: ereg, ereg_replace, file and others. On PHP Manual written by PHP Documentation Group there is the example: <?php // get a web page into an array and print it out $fcontents = file ('http://www.php.net'); while (list ($line_num, $line) = each ($fcontents)) { echo "<b>Line $line_num:</b> " . htmlspecialchars ($line) . "<br>\n"; } // get a web page into a string $fcontents = join ('', file ('http://www.php.net')); ?> It doesn't work! I get from the web "The document contained no data" My OS is Slackware 7.1 and web server is apache 1.3.12. Michele Cerioni

« previous php.dev (#45367) next »