0
votes

Error Fatal error: require() [function.require]: Failed opening required '/home/demohab/public_html/mailout/admin/com/lib/mc9uowrh329xzx.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/demohab/public_html/mailout/admin/com/init.php on line 57

CODE(42-59)

function __iem_autoload_function($className)
{
    // faster than calling require_once
    // also, if the class already exists, then we don't even need to autoload the file
    if (class_exists($className)) {
        return;
    }

    $path = dirname(__FILE__) . '/lib/' . str_replace('_', '/', $className);

    // the .class.php naming convention is now deprecated, but since most files still use it
    // so it is put first to improve performance
    if (is_readable($path . '.class.php')) {
        require $path . '.class.php';
    } else {
        require $path . '.php';
    }
}
3
Is the path correct? Does the file actually exist? - Evan Mulawski
If the file exists, does user under whom PHP is running have permissions to read that file? - J0HN
The file is not virtually present. Also i had assigned 755 - mohan.hab

3 Answers

2
votes

The problem was because of wrong file permission given as 777. I rectified by reinstalling fresh one on linux server.

0
votes

The path you are trying to open, does not exist.

This can have multiple reasons, the most common are:

  1. The file doesn't exist (doh!).
  2. Your include path isn't correct.
0
votes

Your code is trying to open a file (require it into your code) mc9uowrh329xzx.php and it does not exist at the location of '/home/demohab/public_html/mailout/admin/com/lib/'