同一源码,在本地可以,在服务器上面执行不了。
我写了一个ajax请求,我在本地测式是好好的,但是我放在服务器上面执行就不行了。也查不出原因来?
你们曾经有这种情况没有。
ajax
<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
-->function showList(id){
url='ajaxlist.php';
$.get(url,{id:id},
function (e){
if(e==0){
$("#info").html("无支付信息");
} else{
$("#info").html(e);
}
});
}
<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
--><?php
require_once("config.php");
$news= new Db_Base();
mysql_query("set names utf8");
$sql=" SELECT paytype FROM `nav` WHERE `id` = ".$_GET['id']." LIMIT 1";
$news->Db_Query($sql);
$row=$news->Db_Fetch_Array();
if($row){
echo json_decode($row['paytype']);
}else{
die(0);
}
?>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号