|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-23 01:07 UTC] zak at cvs dot php dot net
[2000-07-29 23:57 UTC] zak@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 06:00:01 2025 UTC |
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"; ?>