Welcome Guest, Not a member yet? Register   Sign In
basepath is so that it can not see all of a sudden
#2

I think you're mixing up some things.

The line
PHP Code:
<Php if (defined 'BASEPATH')!) Exit ( 'No direct script access allowed')?; 

Should be:
PHP Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 

The !-mark means "not". If you omit that, or if you put it in the wrong place, your website will throw the "No direct script access allowed" in all cases, because the BASEPATH constant has been defined.
Reply


Messages In This Thread
RE: basepath is so that it can not see all of a sudden - by Wouter60 - 04-06-2016, 09:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB