note 99176 deleted from function.fopen by cmb
| From: | cmb@php.net | Date: | Sun, 09 Feb 2020 08:13:28 +0000 |
| Subject: | note 99176 deleted from function.fopen by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-214045@lists.php.net to get a copy of this message | ||
Note Submitter: eyrie88 at gmail dot com
----
Be aware that fopen($url) also respects HTTP status headers. If the URL responds with a 1xx, 4xx, or
5xx status code, you will get a "failed to open stream: HTTP request failed!", followed by
the HTTP status response. Same goes for file_get_contents($url)...