Page 1 of 1

Another How-To Question: Getting Server Info

Posted: Wed Sep 24, 2008 7:01 pm
by sami1255
am kinda <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> off caus of this :banghead: which caused me join this forum :lol:

Am looking the way to display server information (on which the site is hosted) on the web page.. like;

Running On (Operating System Name) (Apache/IIS) (PHP Version) (MySql) (How many SQL queries took place)

i know almost all these can be viewed using phpinfo() but how to crop the info i needed?

Re: Another How-To Question: Getting Server Info

Posted: Wed Sep 24, 2008 7:38 pm
by Christopher
Look at phpinfo(). At the bottom if give all the values contained in the $_SERVER superglobal array.