Re: [請益] 請高手大大們幫我這個超級初學者一個忙 …

看板PHP作者 (獅子男)時間19年前 (2006/06/06 23:47), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/2 (看更多)

06/06 22:56,
感謝大大~不過<? 適不是等於<?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

06/07 00:08, , 1F
受教了m(_ _)m
06/07 00:08, 1F
文章代碼(AID): #14XQEQB4 (PHP)
文章代碼(AID): #14XQEQB4 (PHP)