You are here: Re: PHP won't interpret php code any more « PHP Programming Language « IT news, forums, messages
Re: PHP won't interpret php code any more

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация