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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dv at josheli dot com
New email:
PHP Version: OS:

 

 [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: Thu Jul 17 02:01:33 2025 UTC