gpt4 book ai didi

PHP shell : how to run code in existing file

转载 作者:搜寻专家 更新时间:2023-10-31 20:42:20 25 4
gpt4 key购买 nike

启动 php shell 之后

php -a

如何运行现有的 php 文件,例如“index.php”?我知道它可以像

$php 索引.php

从命令行。但是如何从 shell 中做到这一点?

最佳答案

你只需包含它:

include 'index.php';

关于PHP shell : how to run code in existing file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19337998/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com