suspect Posted July 16, 2008 Share Posted July 16, 2008 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 More sharing options...
ratcateme Posted July 16, 2008 Share Posted July 16, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.