How to get visitor’s IP address?

Hi all friend.

I wrote a PHP function, which will get visitors IP address. The good thing in this function is that, it will also get IP address behind Proxy server. You can see the detailed PHP codes. This function has intelligent codes. I hope it will help for PHP developers. My recommendation is that do not use only $_SERVER[“REMOTE_ADDR”]. Sometime it doesn’t return correct IP address of visitors. Continue reading “How to get visitor’s IP address?”

How to check valid email address using PHP?

Dear Friends,

I’ve written a PHP function, It will check and return true if given email address is a valid email address and it will return false if give email address is not a valid email address. The important thing is that in this function that it will also check that given domain name is working and valid domain name or not. It gets MX records of given domain name. Continue reading “How to check valid email address using PHP?”