php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #24073 gethostbyname example confusion
Submitted: 2003-06-07 00:25 UTC Modified: 2003-06-07 00:49 UTC
From: dv at josheli dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.1 OS: Windows XP
Private report: No CVE-ID: None
 [2003-06-07 00:25 UTC] dv at josheli dot com
"Example 1" under function 'gethostbyname' should read "gethostbyname", not "gethostbyaddr".


gethostbyname
.....

Example 1. A simple gethostbyaddr() example

<?php
$ip = gethostbyname('www.example.com');

print $ip;
?>

See also gethostbyaddr(). 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-07 00:49 UTC] philip@php.net
Fixed in CVS, it'll show up during the next manual build.  Thanks for the report :)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 19:01:32 2025 UTC