我的文件结构如下所示:
site
module
index.php
js
auto.js
ajax
auto.php
index.php
我在module/index.php中包含了module/index.php,其中auto.js是一个ajax调用,它将数据传递给ajax/auto.php。
编辑 site/index.php is also using js/auto.js和ajax调用在site/index.php中运行良好
我在auto.js中的ajax调用如下:
$.ajax({
在结构化目录列表中移动文件后,我遇到了问题(我在所有文件中都使用了相对链接)。
快速概述:
www
js
functions.js
php
ajax.send.php include ('./functions.php');
ajax.delete.php include ('./functions.php');
functions.php
other dirs that have no influence
index.php include ('./php/fu