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.
启动 php shell 后
php -a
你如何运行现有的 php 文件说'index.php'?我知道它可以像这样运行
$php index.php
从命令行。但是你如何从 shell 中做到这一点?
你只需包括它:
include 'index.php';