Mid-Atlantic Developer Conference


Please answer this simple SPAM challenge: nine minus eight?
(Example: nine)

The Note You're Voting On

slva dot web dot sit at gmail dot com
5 years ago
If  allow_url_fopen is disabled in php.ini you can use CURL function for check file exist:

= curl_init("http://www.example.com/favicon.ico");

curl_setopt($ch, CURLOPT_NOBODY, true);
$retcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
// $retcode >= 400 -> not found, $retcode = 200, found.

<< Back to user notes page

To Top