Jump to content

Hiding the php.ini file


Recommended Posts

My ISP has told me that to modify settings in their php.ini file I can create my own php.ini file and insert it into my web directory.  However, I want this file to be hidden from browsers for security reasons.  Currently when typing www.mydomain.co.uk/php.ini the PHP file contents are displayed in my browser.  I know this happens because the browser doesn't know what a ini file is and so displays it as plain text but I don't want it to be displayed.  How can I stop it being displayed?

Link to comment
https://forums.phpfreaks.com/topic/112024-hiding-the-phpini-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.