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'"

 

posted @ 2017-05-20 21:02  坏小子1993  阅读(173)  评论(0编辑  收藏  举报