My Apache doesn't execute PHP code with <? ?> Tag [duplicate]
Possible Duplicate:
How to enable PHP short tags ?
I am using
Apache Friends XA开发者_如何学编程MPP (Basis Package) version 1.7.3- Apache 2.2.14 (IPV6 enabled)
- MySQL 5.1.41 (Community Server) with PBXT engine 1.0.09-rc
- PHP 5.3.1 (PEAR, Mail_Mime, MDB2, Zend)
and i am running php files, that i code with <? ?>
tags not <?php ?>
.
but the apache server won't execute my code, but if i try with <?php ?>
tags, the code works. Anyone know how to enable the server to execute php code with <? ?>
tags ?
you need to configure you php.ini
fiile and set short_open_tag
to 1
source: http://php.net/manual/en/ini.core.php
精彩评论