Re: [請益] 請高手大大們幫我這個超級初學者一個忙 …
推
06/06 22:56,
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
推
06/07 00:08, , 1F
06/07 00:08, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
PHP 近期熱門文章
PTT數位生活區 即時熱門文章