Home » File Formats » File_IMC » Bug #2228
File_IMC::build() file_exists call fails
Details
| Submitted | 2004-08-26 22:36 UTC |
|---|---|
| From | scragz at hotmail dot com |
| Assigned | pmjones |
| Status | No Feedback |
| Package | File_IMC |
| PHP Version | 4.3.4 |
| OS | Debian Sarge |
| Roadmaps | (Not assigned) |
Comments
[2004-08-26 22:36 UTC] scragz at hotmail dot com
Description:
------------
Since file_exists doesn't use the include_path and it is being passed a relative path, it fails to find the file.
Reproduce code:
---------------
You could try something like this:
$tmpPathInfo = pathinfo(__FILE__);
$filename = realpath($tmpPathInfo['dirname'].'/IMC/Build/'. $format . '.php');