Re: PHP code will not work
| From: | Mike V | Date: | Wed, 09 Jul 2008 13:45:46 +0000 |
| Subject: | Re: PHP code will not work | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276498@lists.php.net to get a copy of this message | ||
I had this problem and just figured it out. I was copying and pasting the
code snippet from the tutorials page to my test editor and in the process
picked up an invisible ctrl char. Doh!!
Joseph Subida wrote:
>
>
> The error I get when I try
>
> <?php
> echo $_SERVER['HTTP_USER_AGENT'];
> ?>
>
> is
>
> Parse error: syntax error, unexpected T_VARIABLE in
> /Library/WebServer/Documents/test.php on line 106
>
> I tried Googling "T_VARIABLE" and haven't found any useful solutions.
> Any ideas? Thanks!
>
> -J.C.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
View this message in context: http://www.nabble.com/PHP-code-will-not-work-tp17811807p18362005.html
Sent from the PHP - General mailing list archive at Nabble.com.