note 113742 deleted from function.get-headers by peehaa

From: Date: Mon, 02 Dec 2013 09:29:58 +0000
Subject: note 113742 deleted from function.get-headers by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-197712@lists.php.net to get a copy of this message
Note Submitter: Kubo2 ---- If you don't want to display Warning when get_headers() function fails, you can simply add at-sign (@) before it. <?php // in failure, Warning will be hidden and false returned $withoutWarning = @get_headers("http://www.some-domain.com"); // in failure, Warning displays and false will be returned, too $withWarning = get_headers("http://www.some-domain.com"); // bool(false) var_dump($withoutWarning); // bool(false) var_dump($withWarning); ?>

« previous php.notes (#197712) next »