note 113744 deleted from features.remote-files by salathe

From: Date: Mon, 21 Sep 2020 14:54:33 +0000
Subject: note 113744 deleted from features.remote-files by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215370@lists.php.net to get a copy of this message
Note Submitter: slva dot web dot sit at gmail dot com ---- If allow_url_fopen is disabled in php.ini you can use CURL function for check file exist: <?php $ch = curl_init("http://www.example.com/favicon.ico"); curl_setopt($ch, CURLOPT_NOBODY, true); curl_exec($ch); $retcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); // $retcode >= 400 -> not found, $retcode = 200, found. curl_close($ch); ?>

« previous php.notes (#215370) next »