#30044 [Opn->Bgs]: Don't require php tags for shell scripts.
| From: | rasmus@php.net | Date: | Thu, 09 Sep 2004 22:55:07 +0000 |
| Subject: | #30044 [Opn->Bgs]: Don't require php tags for shell scripts. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65970@lists.php.net to get a copy of this message | ||
ID: 30044
Updated by: rasmus@php.net
Reported By: nconantj at frontiernet dot net
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: Irrelevant
New Comment:
You should read the output of: php -h
Previous Comments:
------------------------------------------------------------------------
[2004-09-10 00:46:16] nconantj at frontiernet dot net
Description:
------------
I would deeply appreciate it if I could write a PHP shell script
without the PHP required tags.
As far as implementing this, make it a command line option for the CLI
(--notags).
PHP is a powerful language that could be more easily used for system
shell scripts with this ability. I would be able to write a script as
follows:
#!/usr/bin/php --notags
<<code>>
rather than as:
#!/usr/bin/php
<?php
<<code>>
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30044&edit=1