PHP String parse error [closed]
I am getting this error:
PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING
When I do this call:
<?php
inlcude '../global.php';
?>
And the global.php file is there, so I don't think that is the problem. I am trying to call global.php as the first thing that happens in the script.
Anyone know how to fix this error?
You are using :
<?php
inlcude '../global.php';
?>
You should be using :
<?php
include '../global.php';
?>
Note the typo : you must use include
, and not inlcude
;-)
inlcude '../global.php';
^^^^^^^
Spellcheck says "boo!".
Typo there it should be include
try below code
include '../global.php';
精彩评论