[請益] PHP 執行問題

看板PHP作者 (波奇)時間15年前 (2008/12/23 12:51), 編輯推噓2(205)
留言7則, 3人參與, 最新討論串1/1
不好意思我想請問一下 我下載安裝好 appserv後 沒有改任何設定 連上http://localhost/ 也可顯示網頁 安裝沒問題 可是用PHP Expert Editor 練習範本的程式時 執行後跑出 PHP Path Error! The probable reasons: Not installed PHP on your computer. PHP is installed, but not specified the path to php.exe in Run Options 這是為甚麼呢@@" 用http://localhost/XXX.php 去連 則是會出現 Parse error: syntax error, unexpected T_STRING in C:\AppServ\www\XXX.php on line 21 是語法本身錯了嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 134.208.38.125 ※ 編輯: CHAOS316 來自: 134.208.38.125 (12/23 13:03)

12/23 13:26, , 1F
1. 在PHP Expert Editor的Run Options設定php路徑
12/23 13:26, 1F

12/23 13:26, , 2F
2. http://localhost/XXX.php的確是指語法錯
12/23 13:26, 2F

12/23 13:27, , 3F
以上純粹根據內容的訊息回答:p
12/23 13:27, 3F

12/23 13:28, , 4F
請問要怎麼改路徑呢?
12/23 13:28, 4F

12/23 13:28, , 5F
語法本身我後來要看了好幾次 有抓到錯囧"
12/23 13:28, 5F

12/23 13:53, , 6F
把範本丟到www子目錄下就可以了
12/23 13:53, 6F

12/23 13:57, , 7F
你把原始檔放上來看看
12/23 13:57, 7F
文章代碼(AID): #19K6vYN4 (PHP)