Re: [PHP] Get remote servers ip [part 2]

2004-09-22 Thread Mag
> > It's all in the manual... > > http://us4.php.net/manual/en/function.parse-url.php Hey John, Thanks, got it! -Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-)

RE: [PHP] Get remote servers ip [part 2]

2004-09-22 Thread Mag
Hey, Thanks Jay, I needed a starting point and after reading at the url you posted I think I need parse_url... Thanks, Mag --- Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > and gethostbyname is only displaying the ip if I > pass > it something like > www.google.com > > Any idea how i ca

Re: [PHP] Get remote servers ip [part 2]

2004-09-22 Thread John Nichel
Mag wrote: Hi again, Am having a bit of a problem here, basically I have a text box on my site where the visitor enters a url and I display that url's ip address...which as Eugeni kindly pointed out can be easily done with gethostbyname()...but the problem is the url entered at my site would be som

RE: [PHP] Get remote servers ip [part 2]

2004-09-22 Thread Jay Blanchard
[snip] and gethostbyname is only displaying the ip if I pass it something like www.google.com Any idea how i can "strip" the first 2 examples to get the format i can pass to gethostbyname() ? [/snip] Start here ... http://www.php.net/url -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] Get remote servers ip [part 2]

2004-09-22 Thread Mag
Hi again, Am having a bit of a problem here, basically I have a text box on my site where the visitor enters a url and I display that url's ip address...which as Eugeni kindly pointed out can be easily done with gethostbyname()...but the problem is the url entered at my site would be something like

Re: [PHP] Get remote servers ip

2004-09-22 Thread Mag
Message - > From: "Mag" <[EMAIL PROTECTED]> > To: "php php" <[EMAIL PROTECTED]> > Sent: Wednesday, September 22, 2004 3:47 PM > Subject: [PHP] Get remote servers ip > > > > Hi, > > I have a textbox where a visitor can e

Re: [PHP] Get remote servers ip

2004-09-22 Thread Eugeni Doljenko
That's very simple. Use gethostbyname() function. Look "LXVIII. Network Functions" for more details. - Original Message - From: "Mag" <[EMAIL PROTECTED]> To: "php php" <[EMAIL PROTECTED]> Sent: Wednesday, September 22, 2004 3:47 PM Subj

[PHP] Get remote servers ip

2004-09-22 Thread Mag
Hi, I have a textbox where a visitor can enter a site name/url (eg: http://google.com) and i need to display that ip on the screen. how do i get the ipaddress of google.com using PHP? Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great,