Re: Parse error
| From: | Jochem Maas | Date: | Wed, 18 Feb 2004 03:43:39 +0000 |
| Subject: | Re: Parse error | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178049@lists.php.net to get a copy of this message | ||
T_VARIABLE refers to a variable token (e.g. $foo) found in your file
when the PHP parser was expecting something else.
the very common typo; e.g.: (note the end of line 3 below)
<?
$foo = 'hello world';
echo $foo
$bar = $foo;
?>
PHP parser token overview:
http://www.phpbuilder.com/manual/tokens.php
Stuart wrote:
Rolf van de Krol wrote:Does anybody know what this error can meen? Parse error: parse error, unexpected T_VARIABLE in /www/htdocs/rolfvand/thinkquest/browsercheck.php on line 46 What is a T_VARIABLE?Could be an unclosed quote, or a number of other things. Post a few lines around line 46 and we can probably help. T_VARIABLE is PHPs internal representation of a variable (I could be wrong).