On Mon, Mar 14, 2011 at 12:04 PM, [email protected] <[email protected]> wrote:
> Hi,
> is it possible to recognize that app is running as a SHELL??
>
> I use a simple database switch in app/config/core.php ... I switch
> between LOCAL and LIVE database...
>
> I ask simply for domain.... domain.com OR domain.local
>
> But if I run it trough SHELL, it does not provide this variable
> $_SERVER['SERVER_NAME']; because it is not under Apache but running as
> a SHELL.
>
>
> Is there a way how can I recognize SHELL mode? or at least pass some
> variables?

Test whether $_SERVER exists.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to