On Tue, Mar 15, 2011 at 12:22 AM, Ryan Schmidt <[email protected]> wrote: > On Mar 14, 2011, at 14:33, cricket wrote: >> >> Test whether $_SERVER exists. > > > That won't work because $_SERVER *does* exist, even for a CLI script. (In > that case, it contains things like $_SERVER['argv'].)
I meant SERVER_NAME. But I'd forgotten about gethostname(). Good plan. -- 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
