【发布时间】:2013-10-12 18:59:34
【问题描述】:
启动 php shell 后
php -a
您如何运行现有的 php 文件,例如“index.php”?我知道它可以像
一样运行$php index.php
从命令行。但是你如何从 shell 中做到这一点?
【问题讨论】:
启动 php shell 后
php -a
您如何运行现有的 php 文件,例如“index.php”?我知道它可以像
一样运行$php index.php
从命令行。但是你如何从 shell 中做到这一点?
【问题讨论】:
您只需包含它:
include 'index.php';
【讨论】: