Jump to content

[SOLVED] @get_headers halting script


Stooney

Recommended Posts

here's my code:

$fileUrl = "http://www.phpfreaks.com/images/logo_main.jpg";
$AgetHeaders = @get_headers($fileUrl);
if (preg_match("|200|", $AgetHeaders[0])) {
echo "good";
} else {
echo "bad";
}

 

(i copied the code from a post on php.net)

 

The script seems to completely stop at @get_headers.  not a single line of anything is executed after it.  any of you know why that would happen?  ty in advance

Link to comment
https://forums.phpfreaks.com/topic/77879-solved-get_headers-halting-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.