x


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:XXXyyy.php, Line 3)

Is this some kind of serious security issues ? I've set the display_error = off in my php.ini.

more ▼

asked May 11 '12 at 08:14 PM

justbecrazy gravatar image

justbecrazy
35 15 17 19

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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?

more ▼

answered May 12 '12 at 09:02 AM

rutter gravatar image

rutter
5.2k 2 11

... and not really related to Unity since it's a pure PHP question ;)

May 12 '12 at 10:35 AM Bunny83
(comments are locked)
10|3000 characters needed characters left

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

more ▼

answered Jun 20 '12 at 03:24 AM

dineshrajpurohit gravatar image

dineshrajpurohit
0

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x131
x72

asked: May 11 '12 at 08:14 PM

Seen: 437 times

Last Updated: Jun 20 '12 at 03:24 AM