PHP运行脚本

PHP运行脚本

  php.exe -f "php文件"

  php.exe -r "php代码"

 例如:在cmd中

C:UsersAdministrator.SKY-20170308YPK>D:phpStudyphpphp-5.4.45-ntsphp.exe -f "D:phpStudyWWWxuexiday1index.php"

C:UsersAdministrator.SKY-20170308YPK>D:phpStudyphpphp-5.4.45-ntsphp.exe -r "echo 'hello word'"

原文地址:https://www.cnblogs.com/zst062102/p/6883168.html