hi all
i have one problem - its like this:
i want to connect to an extern socket (its an sms-gateway-server)
the conenction works but i dont know how to give the text-fields to the server. well it doesn't work with "echo" or something like that :/
hope you can help me...
heres the code:
$txt='DATA test';
$fp = fsockopen ("sms.smsolution.de", 15451, &$errno, &$errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
fputs ($fp, "GET / HTTP/1.0\r\n\r\n");
while (!feof($fp)) {
echo $txt;
}
fclose($fp);
}