php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6780 UDP support in Php
Submitted: 2000-09-16 20:47 UTC Modified: 2000-10-30 11:00 UTC
From: anonymous at sol dot dk Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.2 OS: Windows 98 SE
Private report: No CVE-ID: None
 [2000-09-16 20:47 UTC] anonymous at sol dot dk
Why doenst PhP Support UDP (so it works ????) I have codet some php-script, but it doenst work right !!!


$fp = fsockopen("udp://10.250.7.246", 27015, &$errno, &$errstr);
if (!$fp)
{
  echo "ERROR: $errno - $errstr<br>\n";
} 
else 
{
  fwrite($fp,"????details\x00");
  $got = 0;
  $buffer = fread($fp, 120);
  print( " $got: $buffer \n ");
  echo "Hello WOrld";
  fclose($fp);
	
}

But what have read, some older versions in Php did work with UDP, but not the > 4.0

Martin - Denmark

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-30 11:00 UTC] stas@php.net
PHP supports UDP now. Please reopen if you still have problems.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 13 11:01:35 2024 UTC