0
我想從我的控制器在Zend-PHP發送短信。我用IntelliSMS,我有例外,在它的圖書館:/ 異常:發送短信 - IntelliSMS - fopen異常
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...
這很奇怪,因爲我可以通過發送此短信:獲取方法:
http://www.intellisoftware.co.uk/smsgateway/sendmsg.aspx?username=MyUsername &password=MyPassword&to=44771,44771054321&text=TheMessage
但我不能用這個PHP智能體庫。 你有什麼想法嗎?你知道如何使用Zend框架發送Post請求嗎? 我曾嘗試:
$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 =在