While browsing Sourceforge for cool PHP apps, I saw one called phpSysInfo. It simply shows a summary of system info on a nice web page. (
See a sample here.)
On closer inspection I saw on the forums that someone had abstracted the code. All I need is to be able to find the info from the command line, then parse it with PHP. Simple, right? So, I thought I'd take a stab at making a version for Mac OS X (Darwin).
The Darwin config file I have so far is here:
http://genevish.phpwebhosting.com/class.Darwin.inc.phps, which produces
this.
Most things work, but I need help with the following items:
[list=1][*]Can someone show me the output from "uptime" on an OS X box that has been up more than a week? Mine was just restarted...[*]Any ideas on where to get device info? The template I copied was parsing lines from dmesg, but that code doesn't work on OS X, and I'm a bit befuddled by what's in dmesg.[*]Where can I find swap info?[*]Does the filesystem info look right?[/list=a]
Thanks in advance for the help.
-Scott
[ 11-30-2001: Message edited by: genevish ]
[ 11-30-2001: Message edited by: genevish ]
[ 11-30-2001: Message edited by: genevish ]