且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在命令行中运行php代码

更新时间:2023-02-22 09:30:15

简单:

php myScript.php

…应该做好这项工作.

如果它的行为像猫,那么您可能忘记了使用<?php

If it is acting like cat, then you probably forgot to switch out of template mode and into script mode with <?php