作者JoeHorn (狮子男)
看板PHP
标题Re: [请益] 请高手大大们帮我这个超级初学者一个忙 …
时间Tue Jun 6 23:51:41 2006
1F:推 winbook:感谢大大~不过<? 适不是等於<?php 呀 所以小弟都懒的加XD 06/06 22:56
不建议偷懒, 如果你是要帮忙写程式, 或是您的程式会 release 出来,
请用
<?php 以免麻烦.
因为某些版本的 PHP 的设定档有这段:
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = Off
预设是 off .
如果是 off , 只有遇到
<?php 才会送给引擎,
<? 无效, 它会当作 HTML 显示出来.
--
我不寂寞, 因为烟在我口,
我不寂寞, 因为酒在我手,
我不寂寞, 因为还有寂寞陪着我.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.104.45.102
2F:推 winbook:受教了m(_ _)m 06/07 00:08