Do you know the way to find what is the computer configuration on my host, RAM, CPU and HDD by perl or php?
Jan 31, 2002, 6:51 PM
Enthusiast (809 posts)
Jan 31, 2002, 6:51 PM
Post #2 of 11
Views: 6706
Hi,
this php script may help?
<?
echo phpinfo();
?>
Cheers,
Dat
Programming and creating plugins and templates
Blog
this php script may help?
<?
echo phpinfo();
?>
Cheers,
Dat
Programming and creating plugins and templates
Blog
Jan 31, 2002, 6:59 PM
User (77 posts)
Jan 31, 2002, 6:59 PM
Post #3 of 11
Views: 6695
Thanks for you answer I find the right script phpSysInfo
in anybody nead them http://phpsysinfo.sourceforge.net/
in anybody nead them http://phpsysinfo.sourceforge.net/
Feb 1, 2002, 6:14 AM
Veteran (19537 posts)
Feb 1, 2002, 6:14 AM
Post #7 of 11
Views: 6683
Nah its ok Im writing my own in perl ;)
http://www.wiredon.net/cgi-bin/dev/index.cgi
....and frankly its going to be better than phpSysInfo...
http://www.wiredon.net/cgi-bin/dev/index.cgi
....and frankly its going to be better than phpSysInfo...
Feb 1, 2002, 8:33 AM
Veteran (19537 posts)
Feb 1, 2002, 8:33 AM
Post #8 of 11
Views: 6656
Ok whilst I was eating lunch I wrote my own script in perl.
It is attached below for those who want to try it out.
Installation:
Upload all files to the same directory (one cgi script and 3 templates).
Chmod env.cgi to 755 and that's it.
Edit: I should point out it is only for *nix servers and has only been tested on RedHat.
It is attached below for those who want to try it out.
Installation:
Upload all files to the same directory (one cgi script and 3 templates).
Chmod env.cgi to 755 and that's it.
Edit: I should point out it is only for *nix servers and has only been tested on RedHat.
Feb 1, 2002, 10:02 AM
Veteran (17240 posts)
Feb 1, 2002, 10:02 AM
Post #9 of 11
Views: 6670
Error: (Unix - BSD, Apache 1.3) - 2 different servers
Can't read /proc/version: No such file or directory
Works fine on another server running Linux RedHat.
Anyone interested in running it on UNIX systems will probably confront errors as I have.
But decent script, Paul.
========================================
Buh Bye!
Cheers,
Me
Quote:
Can't read /proc/version: No such file or directory
Works fine on another server running Linux RedHat.
Anyone interested in running it on UNIX systems will probably confront errors as I have.
But decent script, Paul.
========================================
Buh Bye!
Cheers,
Me
Feb 1, 2002, 11:59 AM
Veteran (19537 posts)
Feb 1, 2002, 11:59 AM
Post #11 of 11
Views: 6594
To skip past those /proc/ errors on line 164 change:
open P, "</proc/$_[0]" or error("Can't read /proc/$_[0]: $!", 1);
to...
open P, "</proc/$_[0]";
...it should work then but won't show as much information.
....I'll have to investigate the different proc on those other OS's to make it more reliable.
open P, "</proc/$_[0]" or error("Can't read /proc/$_[0]: $!", 1);
to...
open P, "</proc/$_[0]";
...it should work then but won't show as much information.
....I'll have to investigate the different proc on those other OS's to make it more reliable.