note 113744 added to features.remote-files
| From: | slva dot web dot sit at gmail dot com | Date: | Mon, 25 Nov 2013 00:28:53 +0000 |
| Subject: | note 113744 added to features.remote-files | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-197631@lists.php.net to get a copy of this message | ||
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);
?>
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/features.remote-files.php
Edit -- https://master.php.net/note/edit/113744
Del: integrated -- https://master.php.net/note/delete/113744/integrated
Del: useless -- https://master.php.net/note/delete/113744/useless
Del: bad code -- https://master.php.net/note/delete/113744/bad+code
Del: spam -- https://master.php.net/note/delete/113744/spam
Del: non-english -- https://master.php.net/note/delete/113744/non-english
Del: in docs -- https://master.php.net/note/delete/113744/in+docs
Del: other reasons-- https://master.php.net/note/delete/113744
Reject -- https://master.php.net/note/reject/113744
Search -- https://master.php.net/manage/user-notes.php