note 72496 added to function.socket-create
| From: | ionic at ionic dot de | Date: | Sun, 21 Jan 2007 11:39:18 +0000 |
| Subject: | note 72496 added to function.socket-create | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121980@lists.php.net to get a copy of this message | ||
To david _at* eder #do; us:
Dependent on your system, you could, at least on LINUX, use exec with "/sbin/ifconfig eth0 |
awk '/inet /{ print substr($2,9) }'" (also working for non-root users), that will
work a little bit faster as your PHP function.
Though, we should keep in mind that users with safe_mode enabled are more or less forced to use the
socket thing. :)
----
Server IP: 81.169.180.23
Probable Submitter: 84.188.89.97
----
Manual Page -- http://www.php.net/manual/en/function.socket-create.php
Edit -- https://master.php.net/note/edit/72496
Del: integrated -- https://master.php.net/note/delete/72496/integrated
Del: useless -- https://master.php.net/note/delete/72496/useless
Del: bad code -- https://master.php.net/note/delete/72496/bad+code
Del: spam -- https://master.php.net/note/delete/72496/spam
Del: non-english -- https://master.php.net/note/delete/72496/non-english
Del: in docs -- https://master.php.net/note/delete/72496/in+docs
Del: other reasons-- https://master.php.net/note/delete/72496
Reject -- https://master.php.net/note/reject/72496
Search -- https://master.php.net/manage/user-notes.php