Re: [PHP] getting ip of server

2005-08-12 Thread Tom Cruickshank
Thanks for all the info guys! Apparantly I'm still not quite awake yet. Tom On 8/12/05, John Nichel <[EMAIL PROTECTED]> wrote: > > Tom Cruickshank wrote: > > Hello, > > I'm curious to know if there is a php command that can get the IP of the > > server it's running on. I could always do this.

Re: [PHP] getting ip of server

2005-08-12 Thread John Nichel
Tom Cruickshank wrote: Hello, I'm curious to know if there is a php command that can get the IP of the server it's running on. I could always do this... $results = exec("/sbin/ifconfig | grep broadcast | awk '{print $2}'", $value); but I would prefer to not have to use system commands for

Re: [PHP] getting ip of server

2005-08-12 Thread Torgny Bjers
Tom Cruickshank wrote: > Hello, > I'm curious to know if there is a php command that can get the IP of the > server it's running on. I could always do this... > > $results = exec("/sbin/ifconfig | grep broadcast | awk > '{print $2}'", $value); > > but I would prefer to not have to use system c

RE: [PHP] getting ip of server

2005-08-12 Thread Jay Blanchard
[snip] I'm curious to know if there is a php command that can get the IP of the server it's running on. I could always do this... $results = exec("/sbin/ifconfig | grep broadcast | awk '{print $2}'", $value); but I would prefer to not have to use system commands for this. Would anyone happen

[PHP] getting ip of server

2005-08-12 Thread Tom Cruickshank
Hello, I'm curious to know if there is a php command that can get the IP of the server it's running on. I could always do this... $results = exec("/sbin/ifconfig | grep broadcast | awk '{print $2}'", $value); but I would prefer to not have to use system commands for this. Would anyone happen