PHP 파일 (helpers.php
)에서 함수를 실행하려고하는데 파일이 /includes/
폴더에 있습니다.인트라넷 응용 프로그램 AJAX에서 PHP 파일에 액세스
난 다음 함수가 호출 및 도착 실행을 파일 index.php
(/html/
)와 같은 디렉토리에 helpers.php
을 넣으면 - URL을 사용 후,하지만 난 /includes/
폴더에 보관 경우 : 그것은 실행되지 않습니다 /../includes/helpers.php
을 말한다 파일이 없습니다. 여기
http://webds:8000/includes/helpers.php 404 (Not Found)
내 코드는이 - 어떻게 그것을 제대로 /includes/helpers.php
에 액세스 할 조정할 것인가?
$.ajax(
{
type: 'POST',
url: '/../includes/helpers.php',
data: {'func':'addSKU'},
success: function(data)
{
alert(data);
}
});
구조체입니다. 여기가 네트워크에 있고 루트는 html 디렉토리입니다.
/html
index.php
/includes
helpers.php
config.php
/views
/templates
header.php
footer.php
index.php
addSKU.php
quotes.php
앱 실행 경로는 어디입니까? 어떤 웹 주소는 AJAX가 실행되고 있습니까? –
루트 웹 사이트 디렉토리의 경로는 무엇이며, 해당 파일 시스템의 구조에 따라 –
과 관련된 include 기능은 어디에 있습니까?하지만이 줄을 'url :'/ includes/helpers.php '와 같이 업데이트하면 안됩니다. – msturdy