up vote -1 down vote favorite
share [g+] share [fb]

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?

Thanks for your help.

link|improve this question

Would you mind sharing relevant snippets of code where you suspect this error is coming out from? – ayaz Mar 3 '11 at 6:42
Verbal -1 for <blink>. – deceze Mar 3 '11 at 6:43
3  
include('../global.php'); – Santosh Linkha Mar 3 '11 at 6:43
Whoops - programming late at night...thanks...misspelling lol...my bad - very embarrassing :) – Genadinik Mar 3 '11 at 6:45
feedback

3 Answers

up vote 4 down vote accepted
inlcude '../global.php';
^^^^^^^

Spellcheck says "boo!".

link|improve this answer
feedback

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 ;-)

link|improve this answer
feedback

Typo there it should be include try below code

include '../global.php';
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.