Say I have a file called debug.php and I want to use it only when I am testing scripts.
- How can I disable the file securely?
I'm used to change it to a txt file. But I wonder what other users think is the best method.
|
Say I have a file called debug.php and I want to use it only when I am testing scripts.
I'm used to change it to a txt file. But I wonder what other users think is the best method.
| |||
|
feedback
|
|
Change it to a text file doesn't disable it. And if it is called from somewhere you'll get errors if you have Since you want the file to only be used when in 'debug mode' I would simply either wrap it in a
debug.php
or
| |||||||
feedback
|