UDP????
| From: | John Hermsen | Date: | Sun, 20 Aug 2000 17:52:28 +0000 |
| Subject: | UDP???? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-12650@lists.php.net to get a copy of this message | ||
I want to make a udp connection, but some how I can't get it to work.
I have tried the following example from the php site, but I just get a blank
page.
<?php
$fp = fsockopen("udp://127.0.0.1",13, &$errno, &$errstr);
if (!fp) {
echo "ERROR: $errno - $errstr<br>\n";
} else {
fwrite($fp,"\n");
echo fread($fp, 26);
fclose($fp);
}
?>
What am I doing wrong and do I have to compile PHP with some option to
enable these options?
Regards,
John