How to get a host-name IP address using php

0 514

php has many useful functions and services to work with ip , dns and host-name today i’m going to teach you how you can get Ip address of a host-name in next posts also will share other functions with clear and DIY sample codes, in this code we will use post method to send ip address from a html form to php file ,  first create an index.html page and copy below code in :

in this page user will enter the domain name that want to get its IP then create a php file and name it action.php copy below code in then open index.html file and enter a domain name when you submit domain action.php will get your domain name and will return IP address that is corresponded to it .


Related Topic :  آموزش جستجوی بانک اطلاعاتی با Sql Query در ویژال بیسیک دات نت

Leave A Reply

Your email address will not be published.

error: هشدار: کپی بدون اجازه ممنوع !!