Welcome Guest, Not a member yet? Register   Sign In
Suggestions for using CI from command line?
#1

[eluser]Unknown[/eluser]
I have a growing number of intranet apps created with CI. Now I need to create some functions that are scheduled to happen unattended. Previous to CI, I have created an events DB and a PHP script that the server's scheduling system ran every X minutes. Now that I am using CI, I'd like to use my apps' models as part of the automated processes.

Any suggestions regarding how to run CI code from the CLI, including how to pass parameters, would be greatly appreciated.
#2

[eluser]Jim OHalloran[/eluser]
I think the solution from this forum thread should do the trick. You'll be able to pass parameters via the PATH_INFO environment variable like you would normally do in the URL.

Jim.




Theme © iAndrew 2016 - Forum software by © MyBB