PHP运行脚本
PHP运行脚本
php.exe -f "php文件"
php.exe -r "php代码"
例如:在cmd中
C:\Users\Administrator.SKY-20170308YPK>D:\phpStudy\php\php-5.4.45-nts\php.exe -f "D:\phpStudy\WWW\xuexi\day1\index.php"
C:\Users\Administrator.SKY-20170308YPK>D:\phpStudy\php\php-5.4.45-nts\php.exe -r "echo 'hello word'"