- Home /
security: about showing the path of my php file
I use localhost to test my connection between google chrome and php. When there's some error, the browser would show the exact file name of the php file, including the absolute path in my computer and which line the error happen. (Like: undefined index, (var name), in c:\XXX\yyy.php, Line 3)
Is this some kind of serious security issues ? I've set the display_error = off in my php.ini.
Answer by rutter · May 12, 2012 at 09:02 AM
Sounds like a problem with your PHP config. Are you sure the ini file you're editing is actually being loaded? Make sure that it's in the right location with the right permissions, and maybe restart your web server just for kicks.
You might have better luck in a PHP-specific forum -- this has to be an issue other people have had. Not to say you can't ask for help, here, but it's not exactly our specialty, you know?
... and not really related to Unity since it's a pure PHP question ;)
Answer by dineshrajpurohit · Jun 20, 2012 at 03:24 AM
Try this:
Create an .htaccess file in the root directory of your website and write this line in it.
php_flag display_errors off
May work.
dins
Your answer
Follow this Question
Related Questions
Unity to PHP/MySQL: password and username security 1 Answer
php, sql security 3 Answers
Safest way to send data to server 1 Answer
Best way to protect www post to a php file ? 1 Answer
Bringing a session variable to another page using php 1 Answer