note 84901 deleted from function.file-get-contents by googleguy
| From: | googleguy@php.net | Date: | Sat, 19 Jan 2013 03:46:36 +0000 |
| Subject: | note 84901 deleted from function.file-get-contents by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193245@lists.php.net to get a copy of this message | ||
Note Submitter: daniele dot ricci at staff dot dada dot net
----
I recently upgraded my server to Slackware 12.0.
After this, a program of mine stopped working: the call to file_get_contents (to an URL served by a
custom HTTP server) was returning false without generating any error!
After some investigations I saw this: my custom HTTP server closes the connection at the end of the
content. This (without the header "Connection: close") seems to cause the problem I
described.
To solve the problem I simply added that header to the answer of my custom HTTP server.