PHP 4.0 Bug #6932: Filesize / File_exists and include_path
| From: | richard dot heyes at heyes-computing dot net | Date: | Fri, 29 Sep 2000 06:08:42 +0000 |
| Subject: | PHP 4.0 Bug #6932: Filesize / File_exists and include_path | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33829@lists.php.net to get a copy of this message | ||
From: richard.heyes@heyes-computing.net
Operating system: Any
PHP version: 4.0.2
PHP Bug Type: Feature/Change Request
Bug description: Filesize / File_exists and include_path
Currently filesize and file_exists (possibly other, these are two I know of) don't appear to
support an extra argument like fopen does to make use of the include_path. So the following code
would fail if the file is in the include_path:
$file = fread($fp = fopen($filename, 'r', 1), filesize($filename));
fclose($fp);