Hi,
Can someone tell me what I am doing wrong here please?

<?php
$fileptr =
fopen("http://www.google.com/index.html","r";);

$contents = fread($fileptr, filesize($fileptr));

if(strstr($contents,
"href=\"/froogle?hl=en&tab=wf\""))
{ $result = 1;}else{ $result = 2;}

echo $result;
?>

This is the error I get:
Warning: filesize(): Stat failed for Resource id #1
(errno=2 - No such file or directory) in
/home/quickxxx/public_html/tpg/ check- remote.php on
line 4

Warning: fread(): Length parameter must be greater
than 0. in /
home/quickxxx/public_html/tpg/check-remote.php on line
4
2



Any ideas?

Thanks,
Mag

=====
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


                
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to