PHP 4.0 Bug #2493: fopen/readfile of URL don't output anything

From: Date: Tue, 12 Oct 1999 01:24:10 +0000
Subject: PHP 4.0 Bug #2493: fopen/readfile of URL don't output anything
Groups: php.dev 
Request: Send a blank email to php-dev+get-11694@lists.php.net to get a copy of this message
From: zakon@erols.com Operating system: Windows2000RC2 PHP version: 4.0 Beta 2 PHP Bug Type: Misbehaving function Bug description: fopen/readfile of URL don't output anything Neither of the following snippets return anything. System chugs away for a few seconds and command prompt returns (also tried it via a web request). Same result when substituting hostname with ip address. // test 1 <?php readfile("http://www.php.net/"); ?> // test 2 <?php $fp = fopen("http://www.php.net/","r"); if (!fp) { echo "unable to open url"; exit; } echo "here\n"; # code never gets here while (!feof($fp)) { $thepage .= fgets($fp,4096); } fclose($fp); echo "...\n$thepage...\n"; ?>

« previous php.dev (#11694) next »