Jump to content

Domain infos


suspect

Recommended Posts

Hi! i'm new here. I'm currently learning how to program in PHP.

I want to achieve something, it's basically a php script that has this tasks:

 

* Display the ip address of a domain name in a page:

e.g. in my page i listed yahoo.com and will also output its ip address

 

* Display uptime of a server:

I stumbled on a code that gives info about the server uptime that you're using.

I want to make it to display server uptime for different server/domain.

e.g. in a page listed is yahoo.com and will give output the uptime stats of the server of yahoo.com

 

any help? 

 

 

Link to comment
https://forums.phpfreaks.com/topic/114945-domain-infos/
Share on other sites

you could use dns_get_record();

to get the ip but to get server uptime i know phpsysinfo shows uptime but i think it gets that from a file in /proc so to output uptime from a remote server you would need a script on the remote server that shows uptime that u can get using cURL or something

 

Scott.

Link to comment
https://forums.phpfreaks.com/topic/114945-domain-infos/#findComment-591204
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.