|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-01-04 11:35 UTC] mike at newfangled dot com
$fp = fopen("http://ir.stockmaster.com/c/pbn/stocks.html","r");
Get "no such file".
Works perfect in php 3.0.16
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 13:00:01 2025 UTC |
Here's an example of something that works and doesn't work ============================================== function GetWebPage( $url, $maxsize=1000000 ) { // Open a connection to the site $fp = fopen ($url, "r"); // Did we find it? if (!$fp) { // Nope, return nothing return ""; } // Get the page $webpage = fread($fp, $maxsize); // Close the connection fclose( $fp ); return $webpage; } // Doesn't work get error print GetWebPage("http://ir.stockmaster.com/c/pbn/stocks.html"); // It Works print GetWebPage("http://www.phpbuilder.com/columns/"); ========================================= // first GetWebPage fails // Warning: fopen("http://ir.stockmaster.com/c/pbn/stocks.html","r") - No error in D:\extranet\WebTop\site\t.php on line 25