开发者

My Apache doesn't execute PHP code with <? ?> Tag [duplicate]

开发者 https://www.devze.com 2023-02-04 03:15 出处:网络
This question already has answers here: Closed 12 years ago. Possible Duplicate: How to enable PHP short tags ?
This question already has answers here: Closed 12 years ago.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消