Welcome Guest, Not a member yet? Register   Sign In
about defined('BASEPATH') ?
#4

Normally every php file can be run which can reveal parts of your site or cause other unwanted output like error messages if that file isn't meant to be run from the web.

The line with BASEPATH prevents naughty people to get output from files that are only to be used by the framework like php files in your model and views folders. 

Beware, this doesn't mean it makes your site unhackable!! It just maybe prevents some people from getting easy useful information which can be used for hacking your site.
Reply


Messages In This Thread
about defined('BASEPATH') ? - by seasenx6 - 09-27-2015, 07:54 PM
RE: about defined('BASEPATH') ? - by InsiteFX - 09-27-2015, 09:01 PM
RE: about defined('BASEPATH') ? - by seasenx6 - 09-27-2015, 09:38 PM
RE: about defined('BASEPATH') ? - by Narf - 09-28-2015, 02:40 AM
RE: about defined('BASEPATH') ? - by RogerMore - 09-28-2015, 02:30 AM
RE: about defined('BASEPATH') ? - by sneakyimp - 11-07-2017, 03:30 PM
RE: about defined('BASEPATH') ? - by Narf - 11-08-2017, 03:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB