why not use curl library on PHP. it's not curl (directly) but it's on PHP.
Bopolissimus Platypus Jr wrote:
hello all (for those on the ph-mobileapps list, sorry for the crosspost), i'm working with kannel and a GSM modem. I'm able to successfully send sms out (push, through http://[host]:13013/cgi-bin/sendsms?....) with a browser. I can also do it through php (using fopen, so i do something like: $in=fopen("http://[host]:13013/cgi-bin/sendsms...","r"); the SMS is successfully sent. however, i'd like to know the status of the send. in the browser, "Sent" is printed, so I think I should be able to read that from the stream, but if I try to read the stream, e.g., with something like: while(!feof($in)) print(fgets($in)); I get an error saying that the stream was not succesfully opened (see below). Is there a better way to do this without using curl? my installation doesn't have curl (i could add it, i'd like to avoid doing that if i can though). I tried the same thing with file_get_contents and i get this: Warning: file_get_contents(http://[host]:13013/cgi-bin/sendsms?username=user&password=thepass&to=09171234567&text=test+message): failed to open stream: HTTP request failed! HTTP/1.0 202 Accepted what's a better way to do that? is that a known problem (oh, i'm on mandrake 10.1, php version is 4.3.8) or does it work for others? thanks for any pointers. tiger
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

