Zend - PHP でコントローラーから SMS を送信しようとしています。私はIntelliSMSを使用していますが、そのライブラリに例外があります:/例外:
exception 'Exception' with message 'Problem making HTTP request
https://www.intellisoftware.co.uk/smsgateway/sendmsg.aspx, fopen(https://www.intellisoftware.co.uk/smsgateway/sendmsg.aspx)
[function.fopen]: failed to open stream: Invalid argument' in C:\xampp\htdocs\Story\library\IntelliSMS\SendScripts\IntelliSMS.php:302 Stack trace: #0
C:\xampp\htdocs\Story\library\IntelliSMS\SendScripts\IntelliSMS.php(199): IntelliSMS-
>MakeHTTPFormPost('https://www.int...', 'username=canib&...', 'Content-Type: a...') #1...
このSMSを次の方法で送信できるため、奇妙です: Getメソッド:
http://www.intellisoftware.co.uk/smsgateway/sendmsg.aspx?username=MyUsername &password=MyPassword&to=44771012345,44771054321&text=TheMessage
しかし、私はこの php Intellisms ライブラリを使用できません。何か考えはありますか?Zend フレームワークを使用して Post Request を送信する方法を知っていますか? 私が試してみました:
$request->getResponse()->setRedirect('http://www.intellisoftware.co.uk/smsgateway/sendmsg.aspx?
username=xxx&password=xxx&to='.$number.'&text='.$text,302);
しかし、何も起こりません:/
ありがとう、
私はphp.iniに持っています:allow_url_fopen = On