CodeIgniter Forums
problem with is_dir function. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: problem with is_dir function. (/thread-9208.html)



problem with is_dir function. - El Forum - 06-17-2008

[eluser]Sonny Nguyen[/eluser]
I have gotten an error when I run codeigniter on my host for the first time.
The error starts from index.php in root dir. Is It a bug?!
Code:
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(application) is not within the allowed path(s): (D:\web04\kgt\kgt.com.vn) in D:\web04\kgt\kgt.com.vn\www\index.php on line 93



problem with is_dir function. - El Forum - 06-17-2008

[eluser]Weblizard[/eluser]
No this is not a bug
This is a PHP setting of your host
and it means you are trying to open an directory which php does not access to it
read this for more info [open_basedir section]
http://us.php.net/features.safe-mode
google is your friend Wink


problem with is_dir function. - El Forum - 06-17-2008

[eluser]Sonny Nguyen[/eluser]
I will disable this error by adding @ sign in front of this function ...
Googling is the best way to resolve a problem, but sometime you should ask someone for your problem. Thank my friend.