Please answer this simple SPAM challenge: three minus zero?
(Example: nine)

The Note You're Voting On

coffear at gmail dot com
8 years ago
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';"

<< Back to user notes page

To Top