note 18909 deleted from function.file by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 09:00:32 +0000 |
| Subject: | note 18909 deleted from function.file by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-196814@lists.php.net to get a copy of this message | ||
Note Submitter: php@don't_spam_me
----
It appears that the file() function causes file access problems for perl cgi scripts accessing the
same files. I am using Perl v5.6.0 in linux with PHP/4.0.4pl1. After running a php app using the
file() function, any perl cgi trying to access the same file randomly dies returning an internal
server error: premature end of script headers.
The simple fix is to use fopen(), fgets() and fclose() instead of file().