Web Hosting Talk







View Full Version : hiding some info from phpinfo()


webpointer
02-09-2003, 12:47 PM
Hi,
with phpinfo() you can display all kind of info on php onscreen. but there is one section in phpinfo which I would like to hide from my clients..It displays under the heading "Environment" information about OTHER virtual sites on the server. I want to hide this from my customers. They do not have to know which other domains are hosted on my RAQ.
Here's a screen dump:
http://www.webpointerhosting.com/phpinfo.gif
Can anyone tell me how to hide this bit..... Someone told me these things cab be set in php.ini I cannot fnd anything refferring to the things in the table..

inverus
02-09-2003, 10:05 PM
using a php.ini directive you can DISABLE the phpinfo() function. However, all the info that shows up in phpinfo is availible in other ways as well.

webpointer
02-11-2003, 03:40 PM
So there is no way to hide the directive which I grabbed in my ealier post?

Rich2k
02-12-2003, 06:10 AM
Originally posted by webpointer
So there is no way to hide the directive which I grabbed in my ealier post?

There is no way to hide that info from a client, they are global environment variables accessible to every client using PHP.

You can, however, disable certain functions in php.ini such as mysql_list_dbs() and phpinfo()