Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我像这样运行我的脚本时:
c:\path\to\php.exe -f "c:\script.php"
它“回显”dos 窗口中的代码,但不执行它。
任何想法为什么?我在 script.php 中的所有内容是:
<?PHP //code and stuff ?>
*我也在这个脚本中使用 javascript/jquery。不确定这是否重要。
PHP 是一种服务器端脚本语言,需要服务器才能使用。最新版本的 PHP 包含一个内置的开发服务器,以便您可以学习编写 php。设置设置并不难,但是,如果您一般对学习 PHP 或 Web 开发感兴趣,我建议您使用 Wamp 服务器。它易于设置,并带有 php 和 mysql,因此您可以使用 wordpress 和其他内容管理系统。