View Full Version : phpinfo

02-02-2005, 07:27 AM
When i put this in my html index page it like brings the site to life,it out lines everything kinda gives it a 3D affect. lol
Is there away to have the same affect as this but with out the php info showing up?


// Show all information, defaults to INFO_ALL

// Show just the module information.
// phpinfo(8) yields identical results.


02-02-2005, 09:13 AM
No not really. If you put phpinfo(); in then you get all that info.

I think what you are looking for is how it is formated/looks. That is controled by CSS. This is the CSS phpinfo(); uses.
<style type="text/css"><!--
body {background-color: #ffffff; color: #000000;}
body, td, th, h1, h2 {font-family: sans-serif;}
pre {margin: 0px; font-family: monospace;}
a:link {color: #000099; text-decoration: none;}
a:hover {text-decoration: underline;}
table {border-collapse: collapse;}
.center {text-align: center;}
.center table { margin-left: auto; margin-right: auto; text-align: left;}
.center th { text-align: center; !important }
td, th { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;}
h1 {font-size: 150%;}
h2 {font-size: 125%;}
.p {text-align: left;}
.e {background-color: #ccccff; font-weight: bold;}
.h {background-color: #9999cc; font-weight: bold;}
.v {background-color: #cccccc;}
i {color: #666666;}
img {float: right; border: 0px;}
hr {width: 600px; align: center; background-color: #cccccc; border: 0px; height: 1px;}
If you put that in the head of your html page then it would format things in the same way... kind of. You would need to read up on CSS to really understand what is going on. If you view the resulting source of the page you have the phpinfo(); in then it may give you some idea of how the look is controlled. Notice that some html tags like <td> have class="e" or classe="v" and that some <tr> tags have class="h". See if you can see the pattern.

This link may give you some help with CSS:

02-02-2005, 11:45 AM
Awesome Thank You!