Re: [PHP4BETA] UDP Support in PHP4! YAHOOOOOO!

From: Date: Thu, 24 Feb 2000 00:16:38 +0000
Subject: Re: [PHP4BETA] UDP Support in PHP4! YAHOOOOOO!
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-10777@lists.php.net to get a copy of this message
Ian Redden wrote: > > Does anyone have a little example of how to do UDP in php4? I have been > programming sockets for years using TCP and UDP and understand the basic as > well as advanced fundamentals on how todo so, but dont know the correct > commands/arguments required. > UDP support is currently only in fsockopen(). It is used like this: <? $con = fsockopen("udp://some.host",53); ... ?> This will open a UDP socket to some.host on port 53. The standard network functions can then be used on $con, such as fputs(), fgets(), fclose(), etc. -- ev ---------------------------- Evan Klinger evan@php.net AIM evan715

« previous php.version4 (#10777) next »