Welcome Guest, Not a member yet? Register   Sign In
Running CI Scripts from command line - Possible solution
#5

[eluser]fry-guy[/eluser]
[quote author="yongkhun" date="1199464515"]fry-guy's way not working for me. It just keep giving me Page Not Found error...[/quote]

Are you using mod rewrite? If you are, then try this

Code:
ini_set("max_execution_time","0");
set_time_limit(0);

$_SERVER['QUERY_STRING'] = $argv[1];

include "index.php";

Save this file (e.g. cron.php) in your root codeigniter folder (where index.php is located)

and then run throught the command line:

Code:
$ php cron.php controller/function

Hope this helps


Messages In This Thread
Running CI Scripts from command line - Possible solution - by El Forum - 01-04-2008, 04:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB