开发者

PHP String parse error [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, o开发者_运维百科r an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 9 years ago.

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';
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜