• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with is_dir function.

#1
[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

#2
[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

#3
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.