How can I detect in php that I am running from CLI (command line), and
not the browser. I hate to put a constant in each script:
e.g. define(’CLI’, 1)...
--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-auto-det...ict169501.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=568027
not the browser. I hate to put a constant in each script:
e.g. define(’CLI’, 1)...
--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-auto-det...ict169501.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=568027
Comment