CLI - CodeIgniter on the Command Line |
[eluser]Phil Sturgeon[/eluser]
curl_multi_init would be a good way to go yes.
[eluser]J. Pavel Espinal[/eluser]
Hello, After some search I finally found this Library. I have to say it is just perfect. As someone else pointed out here, it is VERY (if not vital) useful in order to integrate your existent web application (developed with CI) with Asterisk PBX, through AGI (Asterisk Gateway Interface). Before this library, I had to write my own classes and write methods that were very alike to those used in CI, now you can actually use the real CI methods in AGI. At this point, I'm currently able to use CI in order to interact with Asterisk in the following ways: - Via AMI (Asterisk Manager Interface) using a CI library I wrote that works with sockets. As soon as I get some free time I'll make some improvements, and free it here ![]() - Using AGI (Asterisk Gateway Interface) as well. Thanks for this Library!
[eluser]Phil Sturgeon[/eluser]
I'm glad it has helped you out. On an entirely random note, this project just got a new "Donate" button via Pledgie: http://github.com/philsturgeon/codeigniter-cli :kiss:
[eluser]benoa[/eluser]
This is amazing. I love this library. Thank you Phil ! Note : this article from Nettuts was worth reading http://net.tutsplus.com/tutorials/php/6-...e-masters/ (there is a chapter on running CI from the command prompt, I like the way they set it up - though they missed you library).
[eluser]Unknown[/eluser]
hi, I'm trying to run the CI project and output to a log file with this extremely superb MY_URI cli library, however, i've got this problem when i try to run cli to the index.php file Code: php index.php >> logfile.log Code: <h4>A PHP Error was encountered</h4>
[eluser]szymon23[/eluser]
I have a problem when using MY_URI with the database library. My application works fine when called from the browser. When I call it from the command line, it executes but it will not load the database library. When I autoload the database lib, nothing is returned - the controller/function is never called (it seems). When I try to load the database manually as in: Code: echo '1'; All I get is the "1". After that there is a pretty long pause (2-3 secs) and then the application terminates. Like I said, from the browser everything works fine. I need to run my CI function from a batch file, so the batch file looks more or less like this: Code: set PHP_PATH=c:\wamp\bin\php\php5.2.11 I'm really stuck with this one. I HAVE TO be able to execute this from a batch file. Best regards, szymon
[eluser]Wimm_vw[/eluser]
I got a little problem running a cronjob. When I run the script with the commandline (putty - ssh), the script works just fine. -> cd /opt/www/username/web/subdomain.domain.com php index.php sendnewsletter test Cronjob php /opt/www/username/web/subdomain.domain.com index.php sendnewsletter test that doesn't work. Weird?
[eluser]J. Pavel Espinal[/eluser]
Hello, I've been using this library without problems in C.I. 1.7.X, but when trying to use it on 2.X, I get the following error: Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php Does this have to something to do with Phil's CLI library? Have anyone been able to use this in CI 2.X? Regards,
[eluser]Unknown[/eluser]
Hi, i'm trying to get a response from my CI over PHP CLI but when i try with this Code: php index.php [controller] [method] php just prints a blank line. example: Code: C:\>php index.php app console Some idea? Thank u =)
[eluser]Jim Bodine[/eluser]
Having an issue getting CI 2.x to work in CLI mode. Hoping with all the exp in this thread, it might be an easy fix. I in fact DO have it working, kinda. If, from SSH widow I run php /home/xxxx/public_html/index.php jobs The jobs controller gets called WOOT! However if I then take this same thing and add it crontab * * * * * php /home/xxxx/public_html/index.php jobs The only thing I can get get to fire is my default controler (ie welcome controller). Its like the "jobs" is not getting passed when called via crontab. Any thoughts? Thanks! Jim |
Welcome Guest, Not a member yet? Register Sign In |