0

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

4

1 に答える 1

0

私はそれを解決しました。おそらく、私はそれが機能しなかった理由である1つのプロパティを設定しませんでした. 申し訳ありませんが、正確にどこが間違っていたのかわかりません。もう一度書いて、もう1つのプロパティを設定したところ、機能しています。

于 2011-03-08T01:02:07.443 に答える