Another How-To Question: Getting Server Info

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sami1255
Forum Newbie
Posts: 1
Joined: Wed Sep 24, 2008 6:57 pm

Another How-To Question: Getting Server Info

Post 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?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Another How-To Question: Getting Server Info

Post by Christopher »

Look at phpinfo(). At the bottom if give all the values contained in the $_SERVER superglobal array.
(#10850)
Post Reply