I am running a script that loops through various URL's and does a $content=file_get_contents($url); How do I do an "If URL Not Found (404) Then Do Something, Else Run Rest Of Loop" Right now when there is a 404 error, the script stops and outputs a php Warning saying that the file_get_contents returned a 404. A 404 error is ok for this script... I want to move on to the next URL without stopping the script. Thanks
an exclamation point just means if something is not true. Basically if($content) PHP: is the same as if($content == true) PHP: and if(!$content) PHP: is the same as if($content != true) PHP: and also if($content == false) PHP: (the operator "!=" means "not equal to")