< ;?是不是只被识别为php<?php在我的apache 1.3服务器上! [英] <? is not recognized as php only <?php is on my apache 1.3 server!!
问题描述
大家好
我刚刚在我的Apache服务器上安装了php 5,当它写在<?之间时它没有识别我的
代码?只有<?php?才会有效。我怎么能用
编辑httpd.conf文件来允许这个?
亲切的问候
Marc
monomaniac21写道:
大家好
我刚刚在我的Apache服务器上安装了php 5,当它写在<?之间时它没有识别我的
代码?只有<?php?才会有效。我怎么能用
编辑httpd.conf文件来允许这个?
亲切的问候
Marc
嗨
你的php.ini中禁用了short_open_tags。
启用它。 :-)
问候,
Erwin Moller
----- BEGIN PGP SIGNED消息-----
Hash:SHA1
Erwin Moller写道:
short_open_tags在你的php.ini中被禁用。
启用它。 :-)
更好地替换<?的所有出现次数到<?php - 如果你开始使用doctypes,短标签是
有问题。
- -
- ------ ----------------------------
Iv ?? n S ?? nchez Ortega -ivansanchez-algarroba- escomposlinux-punto-org-
a la larga el buen manjar,cansa al fin el paladar。
----- BEGIN PGP签名-----
版本:GnuPG v1.4.6(GNU / Linux)
iD8DBQFFhoP2R56dWuhgxGgRAu8tAJ9lB6yVWhHo / nCqc / aRRSodhODhvACeOHSm
KOgETtWO / 6aPUBE + buwhqEc =
= A5RS
----- END PGP SIGNATURE -----
< blockquote>在我的php.ini.default文件中它说:
short_open_tag = On
Erwin Moller写道:
在php.ini中禁用short_open_tags。
启用它。 :-)
Hi all
Ive just installed php 5 on my Apache server and its not recognizing my
code when its written between <? ?only <?php ?will work. How can i
edit the httpd.conf file to allow this?
Kind regards
Marc
monomaniac21 wrote:
Hi all
Ive just installed php 5 on my Apache server and its not recognizing my
code when its written between <? ?only <?php ?will work. How can i
edit the httpd.conf file to allow this?
Kind regards
MarcHi
short_open_tags is disabled in your php.ini.
Enable it. :-)
Regards,
Erwin Moller
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Erwin Moller wrote:
short_open_tags is disabled in your php.ini.
Enable it. :-)Better replace all ocurrences of "<?" to "<?php" - the short tag is
problematic if you start using doctypes.
- --
- ----------------------------------
Iv??n S??nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
A la larga el buen manjar, cansa al fin el paladar.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFFhoP2R56dWuhgxGgRAu8tAJ9lB6yVWhHo/nCqc/aRRSodhODhvACeOHSm
KOgETtWO/6aPUBE+buwhqEc=
=A5RS
-----END PGP SIGNATURE-----
In my php.ini.default file it says:
short_open_tag = On
Erwin Moller wrote:
short_open_tags is disabled in your php.ini.
Enable it. :-)
这篇关于< ;?是不是只被识别为php<?php在我的apache 1.3服务器上!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!