http://us.php.net/php_sapi_name
On Wed, Jun 25, 2008 at 6:01 AM, da_student <[EMAIL PROTECTED]> wrote: > > I had a look, but I didn't get it to work and I couldn't find a good > tutorial/documentation or anything. Thats a pity. > Anyway, so I tried my other solution... and I actually found the > problem! > I have a tool, where you need to login and in beforeFilter() I check > Login-Status. Since I'm not logged in in command line (and I also > don't know how do it), it didn't go to my function. That was the > problem! So obvious!! Oh well, I guess I'm making a controller just > for command line, where beforeFilter doesn't check Login-Status. Or > anyone have a better idea? > Thanks for your help! > > > > On Jun 20, 4:21 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: >> Maybe you should look into cake >> shellshttp://cakebaker.42dh.com/2007/05/07/writing-a-custom-cakephp-console... >> >> On Fri, Jun 20, 2008 at 9:51 AM, da_student >> >> <[EMAIL PROTECTED]> wrote: >> >> > hey, >> >> > I used this tutorial: >> >http://bakery.cakephp.org/articles/view/calling-controller-actions-fr... >> > to execute actions from thecommandline, which works fine. >> >> > My problem: >> > When executing ("regular") php fromcommandlinelike: php test.php >> > and test.php echoes "something", then "something" occurs in the >> >commandline. (that's what i want!) >> > I do the same with cake: php cron_dispatcher.php controller/action >> > The action doesn't do anything right now. in my view for the action, I >> > just do an echo. My browser shows the echo, but it doesn't show in the >> >commandline. Since I want to read this output from another software, >> > I need the output of the echo in mycommandline. >> > Is there a way to do this?! any ideas?! >> >> > thankful for help :) > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
