How to get a host-name IP address using php

0 311

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 .


این مطلب هم میتواند برای شما مفید باشد   دانلود سورس کد پروژه های سی پلاس پلاس

ارسال یک دیدگاه

آدرس ایمیل شما منتشر نخواهد شد.