私は1つのヘルプが必要です。 PHPを使用して1つのAPIを呼び出す際にエラーが発生します。PHPを使用してsendOTP APIを呼び出す際にエラーが発生する
Error:
Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /opt/lampp/htdocs/test/otp.php on line 8
Warning: include(http://api.msg91.com/api/sendotp.php?authkey="15529*************"&mobile="9937229853"&message="Your verification code is:1111"&sender="Subhrajyoti"&otp="1111"): failed to open stream: no suitable wrapper could be found in /opt/lampp/htdocs/test/otp.php on line 8
Warning: include(): Failed opening 'http://api.msg91.com/api/sendotp.php?authkey="15529*************"&mobile="9937229853"&message="Your verification code is:1111"&sender="Subhrajyoti"&otp="1111"' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/test/otp.php on line 8
私は以下の私のコードを説明しています。
$authkey="15529*************";
$mobile=9937229853;
$code=1111;
$message="Your verification code is:".$code;
$sender="Subhrajyoti";
$otp=1111;
include ('http://api.msg91.com/api/sendotp.php?authkey="'.$authkey.'"&mobile="'.$mobile.'"&message="'.$message.'"&sender="'.$sender.'"&otp="'.$otp.'"');
ここで私はOTPを送信しようとしていますが、それらのメッセージを取得しようとしています。ここで私はOTPを送信し、応答を得る必要があります。私を助けてください。代わりに、この行の
私はこれを含めている理由を理解しないで、あなたはこの 'url'はOTPを送信するための唯一のAPIであるカール – lalithkumar
を使用することができます。 – satya