📌  相关文章
📜  jquery ajax 500 内部服务器错误 php 代码示例

📅  最后修改于: 2022-03-11 14:53:38.046000             🧑  作者: Mango

代码示例1
// That mean you have error in server side
// A 500 error is not a problem with your JS - it s server-side
// Add this code at the top of your PHP:

ini_set('display_errors', 1); 
error_reporting(E_ALL);

// That will show you what the problem is in your PHP code. If it s a syntax error (seems quite likely for a code 500)

// Comment all code in your page PHP and make simple sentense " Hello this is my page " and test 
// if all good then find your error