[問題] 發生forbidden的問題!?

看板Ajax作者 (心中在下雨)時間16年前 (2009/01/20 16:56), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
以下是html碼的部份 <select onchange="get_area_list(this.options[this.options.selectedIndex].value,'2')" size="1" name="city" id="city"> <option... . . </select> <span id="_new_select"></span> 以下是javascript部分 function get_area_list(x,y){ var zipUrl="get_select_list.php"; var zipPar = "i=" + x + "&j=" + y; var prototype; var prototype = new Ajax.Request (zipUrl, {method: 'get', parameters: zipPar, onComplete: function(res){ _new_select.innerHTML = res.responseText; } }); } 說明: 基本上這是一個選了縣市後會出現鄉鎮市區的動態選單 get_select_list.php 的內容會產生鄉鎮市區的選項 但是在某個機率下會產生以下的錯誤訊息 Forbidden You don't have permission to access /get_select_list.php on this server 請問這是在什麼情況下會出現的錯誤 應該怎麼修正比較好呢? 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.120.164.146

01/22 05:30, , 1F
字面上就是權限不足阿,應該是要去開啟讀取或執行的權限
01/22 05:30, 1F
文章代碼(AID): #19TP6XPb (Ajax)
文章代碼(AID): #19TP6XPb (Ajax)