Longhorn PHP 2019 Schedule


Please answer this simple SPAM challenge: min(six, four)?
(Example: nine)

The Note You're Voting On

11 years ago
i use emacs in c-mode for editing.  in 4.3, starting a cli script like so:

#!/usr/bin/php -q /* -*- c -*- */

told emacs to drop into c
-mode automatically when i loaded the file for editingthe '-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 -*- */

t go back to your 4.3 system and replace '-q' with '--'; it seems to cause php to hang waiting on STDIN...

<< Back to user notes page

To Top