Include/require

Hi guys,

I have a quick question. How come I’m unable to use the ‘include’ function or even ‘require’. It says it’s unable to locate the folder but the path is correct. Am I missing anything?

could be a case sensitivity problem…

Hi mdomba,

Thanks for the quick response. Everything is in lower case and I just rechecked. Anything else that I might have missed carelessly? Thanks again.

If the case is OK… then it could be some permission problem…

Note that if a web service does not have a read permission on any of the parent folders… it cannot read the file even if on that file the permissions are OK.

Hi there,

Just to update everybody, it wasn’t a file permission exactly but the file I was trying to include had this:




if (!defined('IN_PHPBB')){

	exit;

}



I was trying and am now successful at integrating the PHPBB login with Yii so my forums and app have a single sign on. If anyone’s wondering how, here’s the tutorial I followed: PHP Academy

But you’ll have to tweak it accordingly to suite Yii.

Thanks again mdomba. Been working on it the entire day. Just tired I guess but you set me on the right track.

I have a related question on this.

Yii fails to include a file when the class file is outside the protected file. Is there any work around on this?