Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Disable PHP from displaying header details.  (Read 2906 times)

0 Members and 1 Guest are viewing this topic.

Jithin

  • Guest
Disable PHP from displaying header details.
« on: November 01, 2013, 06:14:51 pm »
Hi Guys,

I recently posted an article about disabling Apache header? So, how to do the same for PHP? That's easy. Please follow the steps given below.

1) Open your global php.ini file.

2) You can find the directive - expose_php. Disable it as shown below.

expose_php = off

3) Now restart Apache.

That's it. You just disabled PHP header info.