Hi All,
Here is a very simple script for you all:
#!/usr/local/php4/bin/php -q
<?php
$header = "http://127.0.0.1:13013/cgi-bin/sendsms?from=123&to=$argv[1]";
$msg = "&text=MONITOR+$argv[1]";
$footer = "&username=test&password=fubar&smsc=A";
$url = (string)"$header$msg$footer";
$fp = fopen($url,'r');
fclose($fp);
?>
Now, when I try and run it from the command prompt, this is what I get back:
<br>
<b>Warning</b>: fopen("http://127.0.0.1:13013/cgi-bin/sendsms?from=123&to=&text=MONITOR+&username=tester&password=foobar&smsc=A","r") - Inappropriate ioctl for device in <b>./round.php</b> on line <b>9</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>./round.php</b> on line <b>10</b><br>
Any ideas ??? Any thoughts ??? this has really got me banging my head against the wall guys.
Regards,
Nir