note 104167 added to features.commandline

From: Date: Sun, 29 May 2011 03:08:13 +0000
Subject: note 104167 added to features.commandline
Groups: php.notes 
Request: Send a blank email to php-notes+get-180081@lists.php.net to get a copy of this message
Be careful using Rizwan's solution below ("A simple way to check if script is running from browser or cli.") While it does check to see if running from a browser or CLI, the STDIN constant is NOT defined if the script is running from CRONTAB. ---- Server IP: 69.147.83.197 Probable Submitter: 24.128.70.221 ---- Manual Page -- http://www.php.net/manual/en/features.commandline.php Edit -- https://master.php.net/note/edit/104167 Del: integrated -- https://master.php.net/note/delete/104167/integrated Del: useless -- https://master.php.net/note/delete/104167/useless Del: bad code -- https://master.php.net/note/delete/104167/bad+code Del: spam -- https://master.php.net/note/delete/104167/spam Del: non-english -- https://master.php.net/note/delete/104167/non-english Del: in docs -- https://master.php.net/note/delete/104167/in+docs Del: other reasons-- https://master.php.net/note/delete/104167 Reject -- https://master.php.net/note/reject/104167 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180081) next »