How to get php -r to output on OSX command line -


i trying run like

php -r 'echo "test"' 

on mac osx command line. throws no error, in fact nothing happens @ all.

how can output "test" on command line?

thanks answers

you need semi-colon mark end of command, i.e.

php -r 'echo "test";' 

(or

php -r 'echo "test\n";' 

to move new line.)


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -