我上传到服务器时发生httpful类请求未找到错误

时间:2017-01-17 12:44:35

标签: php rest httpful

未找到httpful类请求当我上传到服务器时发生致命错误,但它在localhost中正常工作。

这与.phar文件不支持服务器有什么关系?  //指向您下载phar的位置             包括(组$ config-> SITEURL' /testhttpful/httpful.phar');

        $password2 = base64_encode($password);
        $data = array(
            'password' => $password2,
            'email' => $email,
            'is_active' => '1',
            'phone' => $mobile
        );
        $uri = "http://mm.appexwebsolutions.com/users/register.json";

        $response = \Httpful\Request::post($uri)->sendsJson()->body(json_encode($data))->send();
        $decoded_res = json_decode($response, true);
        $api_message = $decoded_res['message'];

0 个答案:

没有答案