作者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