This tests to see if the current file is being included or run directly. It's useful to add to the top of your include files to stop malicious users from accessing them directly in the browser.
- if(__FILE__ == $_SERVER['SCRIPT_FILENAME'])
- die("This file cannot be executed directly");
You need to login to post a comment.