Jump to content

command line -r not working on windows


raphael75

Recommended Posts

We have a server with windows 2008 R2 with PHP5 installed. I can run php files from the command line using

 

php -f file.php

 

with no problem. However, when I try to run PHP code inline nothing happens:

 

php -r 'echo "hello world";'

 

Literally no output.

 

Do I need to configure something in php.ini to get the -r to work?

 

Thanks!

 

Link to comment
https://forums.phpfreaks.com/topic/286481-command-line-r-not-working-on-windows/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.