PHPSuperBlog.com

Check ip address of host or website with PHP function and HTML form

There is a function in PHP to check the IP address of a host. It is called “gethostbyname()“. We could use it to check the IP address of a website. All you have to do is to type in the website address into the function, for example: gethostbyname(www.phpsuperblog.com); and print the result out and then you can see the IP address of www.phpsuperblog.com. To make it more interactive, I have created an example with HTML form which allows the user to input the website for checking the IP address and here it is: Continue Reading →

  • Categories

  • Useful Downloads