[eluser]Alexxz[/eluser]
I think there is very useful to add in index.php following code
Code:
/*
|---------------------------------------------------------------
| CHANGE CURRENT DIRECTORY
|---------------------------------------------------------------
|
| Change current working directory if CI have runned from command line.
| Web server does this automatically, but command line scripts need this.
|
*/
if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
{
chdir(realpath(dirname(__FILE__)));
}
It is great to see this code in the next release.