Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Fatal Error - happens occasionally?

Guest
Nov 12, 2012 Nov 12, 2012

Copy link to clipboard

Copied

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

TOPICS
Server side applications

Views

602
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 14, 2012 Nov 14, 2012

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines