note 124083 added to features.commandline.usage
| From: | captlid@php.net | Date: | Wed, 31 Jul 2019 16:47:19 +0000 |
| Subject: | note 124083 added to features.commandline.usage | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-211762@lists.php.net to get a copy of this message | ||
Spent way too much time wondering why scripts weren't executing,
when running the command from a linux box, even if your php.ini has short tags enabled
php -f filename.php
make sure the script starts with
<?php
and not
<?
otherwise the command just outputs your source code to the shell instead of the results of any
output.
----
Server IP: 208.43.231.9
Probable Submitter: 82.199.157.54 (proxied: 74.88.75.180)
----
Manual Page -- http://php.net/manual/en/features.commandline.usage.php
Edit -- https://master.php.net/note/edit/124083
Del: integrated -- https://master.php.net/note/delete/124083/integrated
Del: useless -- https://master.php.net/note/delete/124083/useless
Del: bad code -- https://master.php.net/note/delete/124083/bad+code
Del: spam -- https://master.php.net/note/delete/124083/spam
Del: non-english -- https://master.php.net/note/delete/124083/non-english
Del: in docs -- https://master.php.net/note/delete/124083/in+docs
Del: other reasons-- https://master.php.net/note/delete/124083
Reject -- https://master.php.net/note/reject/124083
Search -- https://master.php.net/manage/user-notes.php