$filename = 'http://amazon.com';
echo $filename . ': ' . filesize($filename) . ' bytes';
I get this error:
Warning: filesize() [function.filesize]: stat failed for http://amazon.com in C:\PHP Site\broderbros\fopen.php on line 9
http://amazon.com: bytes
Is this because amazon.com isnt a local file? How do I fix this?