Return to Snippet

Revision: 17299
at August 31, 2009 02:09 by acosonic


Initial Code
$handle = fopen("http://www.google.com", "r");
$contents = '';
while (!feof($handle)) {
 $contents .= fread($handle, 8192);
}
fclose($handle);

Initial URL


Initial Description


Initial Title
getting content of URL via fopen and fread to variable

Initial Tags
url, php

Initial Language
PHP