note 74088 added to features.commandline

From: Date: Fri, 23 Mar 2007 19:48:56 +0000
Subject: note 74088 added to features.commandline
Groups: php.notes 
Request: Send a blank email to php-notes+get-124754@lists.php.net to get a copy of this message
i use emacs in c-mode for editing. in 4.3, starting a cli script like so: #!/usr/bin/php -q /* -*- c -*- */ <?php told emacs to drop into c-mode automatically when i loaded the file for editing. the '-q' flag didn't actually do anything (in the older cgi versions, it suppressed html output when the script was run) but it caused the commented mode line to be ignored by php. in 5.2, '-q' has apparently been deprecated. replace it with '--' to achieve the 4.3 invocation-with-emacs-mode-line behavior: #!/usr/bin/php -- /* -*- c -*- */ <?php don't go back to your 4.3 system and replace '-q' with '--'; it seems to cause php to hang waiting on STDIN... ---- Server IP: 216.194.113.175 Probable Submitter: 130.64.207.10 ---- Manual Page -- http://www.php.net/manual/en/features.commandline.php Edit -- https://master.php.net/note/edit/74088 Del: integrated -- https://master.php.net/note/delete/74088/integrated Del: useless -- https://master.php.net/note/delete/74088/useless Del: bad code -- https://master.php.net/note/delete/74088/bad+code Del: spam -- https://master.php.net/note/delete/74088/spam Del: non-english -- https://master.php.net/note/delete/74088/non-english Del: in docs -- https://master.php.net/note/delete/74088/in+docs Del: other reasons-- https://master.php.net/note/delete/74088 Reject -- https://master.php.net/note/reject/74088 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124754) next »