Hi all, I'm trying to make a *.php script that sends SMS.
I've done sth like that, it connects with server at port 13013 but doesn't sends SMS. What is wrong in here? <?php $host = 'localhost'; $path = "/cgi-bin/sendsms"; $method = 'GET'; $data = "to=%2Bxxxxxxxxxxx&username=tester&password=foobar&text=test"; $fp=fsockopen("localhost", 13013, $errno, $errstr, 30); if ($fp) printf("connected-hp"); if ($method == 'GET') $path .= '?' . $data; print("<p>"); print($path); fputs($fp, "$method $path"); fputs($fp, "Host: $host\r\n"); fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n"); fputs($fp, "Content-length: " . strlen($data) . "\r\n"); if ($useragent) fputs($fp, "User-Agent: MSIE\r\n"); fputs($fp, "Connection: close\r\n\r\n"); fclose($fp); return $buf; ?> Regards Wojtek