Forums

How to parse the IP address?

camerata 25 Jul, 2013
I would like to parse the user IP address. Just I receive it by email but I need to use it for the custom code process.

Thanks in advance.
GreyHead 26 Jul, 2013
Hi camerata,

You can get the IP address like this
$ip_address = JRequest::getString( 'REMOTE_ADDR', '', 'server' );


Bob
camerata 26 Jul, 2013
Thanks Bob. You are right.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger