如何在服务器上测试PHP/MySQL web服务

如何在服务器上测试PHP/MySQL web服务,php,mysql,json,Php,Mysql,Json,我已经实现了一个PHP/MySQL web服务来处理我的iPhone应用程序,当我想在本地主机上测试它时,当我尝试发送JSON编码的响应时,一切都非常异常: $liste_des_themes=array() sendResponse不是一个php函数 试试这个: $result = array("themes" => $stmt); echo json_encode($result); Fatal error: Call to undefined function se

我已经实现了一个PHP/MySQL web服务来处理我的iPhone应用程序,当我想在本地主机上测试它时,当我尝试发送JSON编码的响应时,一切都非常异常: $liste_des_themes=array()


sendResponse不是一个php函数

试试这个:

$result = array("themes" => $stmt);
        echo json_encode($result);
Fatal error: Call to undefined function sendResponse()
$result = array("themes" => $stmt);
        echo json_encode($result);