Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
由于(_JEXEC),我无法连接到 ajax conf.php 文件,然后我使用 jquery 代码:
$.ajax ({ type: "POST", url: "conf.php", data: dataString, cache: false, success: function(html) { $("#flash").fadeOut("slow"); $("#content").html(html); } }); });
如何以其他工作方式连接到该文件?
代码defined( '_JEXEC' ) or die( 'Restricted access' );通常限制ajax
defined( '_JEXEC' ) or die( 'Restricted access' );
功能,因此您将需要使用define('_JEXEC', 1);
define('_JEXEC', 1);
请注意,您需要使用define,而不是defined
define
defined