栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

ByetHost服务器使用JSON字符串传递html值“检查浏览器”

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ByetHost服务器使用JSON字符串传递html值“检查浏览器”

我应该添加以下内容作为答案,因为这是绕过上述问题的解决方法。发布可能会帮助某人:

这个问题可以通过简单地编写exit()来解决。在最后一个可执行语句的php文件中。这将退出php文件,并且不会附加文本。例如。

<?phpinclude('config.php');date_default_timezone_set("Asia/Calcutta");$result1 = mysqli_query($con,"SELECt  *          FROM  `pj_medionline_mst_stockist`ORDER BY  `pj_medionline_mst_stockist`.`ID` ASC ");$response = array();$posts = array();while($row=mysqli_fetch_array($result1)){    $id =$row["ID"];    $stkpre =$row["stkpre"];    $comName =$row["ComName"];    $operatorid =$row["operatorid"];    $password =$row["Password"];    $posts[] = array('id'=>$id, 'stkpre'=>$stkpre, 'stkname'=>$comName, 'operatorid'=>$operatorid, 'password'=>$password);}$response['stokist'] = $posts;print(json_enpre($response));exit();?>


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/466097.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号