0

httpful class request not found 当我上传到服务器时发生致命错误,但它在 localhost 中工作正常。

这是与不支持服务器的 .phar 文件有关的任何事情吗?// 指向您下载 phar 的位置 include($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'];
4

0 回答 0