Re: PHP code will not work
| From: | Daniel Brown | Date: | Fri, 13 Jun 2008 13:51:58 +0000 |
| Subject: | Re: PHP code will not work | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275325@lists.php.net to get a copy of this message | ||
On Fri, Jun 13, 2008 at 2:09 AM, Joseph Subida <jcspam0017@gmail.com> wrote:
>
> 105: <?php
> 106: echo $_SERVER['HTTP_USER_AGENT'];
> 107: ?>
>
> All the code before line 105 is code that I've been messing around with. I
> tried testing those three lines in its own file. But I still get the same
> error:
>
> Parse error: syntax error, unexpected T_VARIABLE in
> /Library/WebServer/Documents/error.php on line 2
Odd.... if you can run a phpinfo(), see if there's anything set in
auto_prepend_file.
Is this a shared hosting system, or are you running it on your own
system? Can you give us the output of your entire phpinfo() by link?
--
</Daniel P. Brown>
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.