note 28406 added to function.explode

From: Date: Sun, 12 Jan 2003 03:06:33 +0000
Subject: note 28406 added to function.explode
Groups: php.notes 
Request: Send a blank email to php-notes+get-42014@lists.php.net to get a copy of this message
Since i thought that there wasn't any ipv6 lookup function, i created this that makes it work. <?php /* This script will lookup the ipv6 addr */ /* Requires: host */ /* Comments: elajt@elajt.net */ $hostpath = "/usr/bin/host"; $host = gethostbyaddr($REMOTE_ADDR); $output = exec("$hostpath -t AAAA $host"); $pieces = explode(" ", $output); echo $pieces[4]; ?> -- http://www.php.net/manual/en/function.explode.php http://master.php.net/manage/user-notes.php?action=edit+28406 http://master.php.net/manage/user-notes.php?action=delete+28406 http://master.php.net/manage/user-notes.php?action=reject+28406

« previous php.notes (#42014) next »