Error message for require once function

These are the first lines of my code:
[php] define(‘ABS_PATH’, dirname(dirname($_SERVER[‘SCRIPT_FILENAME’])) . ‘/’);
define(‘OC_ADMIN’, true);

require_once (ABS_PATH . 'oc-load.php');

if( file_exists(ABS_PATH . '.maintenance') ) {
    define('__OSC_MAINTENANCE__', true);

When i upload it to my server, I get the following error messages that both point to the line with the require once function:

Warning: require_once(/www/ [function.require-once]: failed to open stream: No such file or directory in /home/a5282907/public_html/oc-admin/index.php on line 25

Fatal error: require_once() [function.require]: Failed opening required ‘/www/’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/a5282907/public_html/oc-admin/index.php on line 25

Did you intend to use dirname() twice?

The path is invalid, you will have to figure out what the real path is and how to define it.

Sponsor our Newsletter | Privacy Policy | Terms of Service