Skip to main content
November 12, 2012
Question

Fatal Error - happens occasionally?

  • November 12, 2012
  • 1 reply
  • 622 views

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Fatal error: Unknown: Failed opening required 'J:/xampp/htdocs/mylocalhostname/register.php' (include_path='.;\xampp\php\PEAR') in Unknown on line 0

I am getting the above error, only occasionally, as one of my pages loads, I am not sure what it means.

Is it refering the the path / url of my includes files in that page? This is how I include a file within that page:

$Incfile = 'includes/createphotot.inc.php';

if (file_exists($Incfile) && is_readable($Incfile)) {

include($Incfile);

}

Am I linking to my includes file correctly or maybe it should be a full URL?

It is very strange that the error only seems to occur 10% on the time so I haven't yet established under what circumstances it is occuring.

Any help would be very much appreciated.

Thank you

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

hyadav
Adobe Employee
Adobe Employee
November 14, 2012

If you are using the relative path then you have to make sure that under your php.ini the include path has the detailed path of your files.

Otherwise use the full URL or the absolute path of the file.

Thanks

Harshit