Do you have a question? Post it now! No Registration Necessary. Now with pictures!
October 14, 2006, 8:20 pm
rate this thread
Re: Get the server's ip address
you could try seeing if there's anything specific to your webserver by
Are you running a CLI script?
There might be something in pear, I'd check the Net or Socket related
you could also see if there's something in pear...
If the socket_* methods aren't blocked, you could attempt to make an
outgoing socket connection to an HTTP port or something you _know_ you
can connect to (i.e. 'http://google.com:80 '), and then read the local
IP address of outgoing socket. for example:
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
socket_connect($sock, '18.104.22.168', 80);
hope it helps
On Oct 14, 1:20 pm, at(nospam) <"lasse(at(nospam))the87boy.dk"> wrote:
- » Can't seem to create a simple pattern matching function due to character than won't allow ...
- — Previous thread in » PHP Scripting Forum