Posted by Anonymous on 12/25/06 20:37
hup@addall.com wrote:
>
> One of my Linux (CentOS) server stop interpret php code any more. I
> did try to compile and installed other version of php, but it's still
> not working.
>
> [root@ns6 php-5.1.6]# cat /tmp/phpinfo.php
> <?
> phpinfo()
> ?>
PHP scripts start with "<?PHP" not just wirh "<?".
What you are using is called a short tag. Short tag use is disencouraged
nowadays because XML documents also start with "<?" ("<?xml" to be more
exact). That's why on any modern PHP version short tags are switched off
by default. See your own config:
> short_open_tag => Off => Off
Either set this to on or use "<?PHP" instead of "<?", which would be the
better solution.
Bye!
Navigation:
[Reply to this message]
|