header('Content-Type: text/html; charset=UTF-8');
if (file_exists('./admin/actions/precheck.php'))
    $testing_from = '';
    require_once './admin/actions/precheck.php';
$response = '';
    require_once 'admin/config/ProjectConfig.php';
    $options = array();
    $application = new Moto_Html_Application($options);
    $response = $application->dispatch();
catch(Exception $e)
    echo '<b>Exception</b>: ';
    echo $e->getMessage();
echo $response;

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on line 6

website not loading properly

Recommended Answers

All 2 Replies

require_once './admin/actions/precheck.php';
make that require_once '/admin/actions/precheck.php';
(remove the .)

Check the code in precheck.php. The code you are showing appears to be correct.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.