Re: Q: about the server ip

Jan Fedemo <[email protected]> Thu, 27 Dec 2012 10:36:57 +0100
Newsgroups gmane.comp.web.curl.php
Message-ID <CAHmV6vH-9UZyN6jTBFDtVeLR3o3+-__BwgJSEeq-j9s6YHQMYg@mail.gmail.com>
Thank you very much for your answer, now I know how to solve the problem, I
greet the Polish.


2012/12/27 shiplu <[email protected]>

> If you want to get the IP of the client who requested your php page use
> $_SERVER['REMOTE_ADDR'].
>
> To get the IP of the server you are sending curl request use
> gethostbyname() function as gethostbyname("example.com");
>
>
>
>
> On Thu, Dec 27, 2012 at 11:04 AM, seven <[email protected]> wrote:
>
>>  how can i get the remote server ip address??
>>
>> _______________________________________________
>> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>>
>>
>
>
> --
> Shiplu.Mokadd.im
> ImgSign.com | A dynamic signature machine
> Innovation distinguishes between follower and leader
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php