how do i stop this message from appearing when my script can't reach the url? Warning: file_get_contents(http://www.test.com) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 403 OK in /home/www/test.php I want it to stop displaying the $url if there is an error reaching it
if you append an "@" symbol before a php function, you should suppress the error. for instance, if the error is from teh file_get_contents line then just replace that line up above with