note 91343 deleted from features.commandline by cmb

From: Date: Sun, 30 Jun 2019 09:54:37 +0000
Subject: note 91343 deleted from features.commandline by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-211442@lists.php.net to get a copy of this message
Note Submitter: coffear at gmail dot com ---- In the notes it there is an example of running 1 line of PHP using: php -r 'print_r(get_defined_constants());' This might work on a UNIX machine but unfortunately on windows it produces the following error message: Parse error: parse error in Command line code on line 1 Instead of using ' (single quotes) to encompass the PHP code use " (double quotes) instead. You can safely use ' within the code itself however such as: php -r "echo 'hello';"

« previous php.notes (#211442) next »