Home  >  Article  >  Backend Development  >  cmd - windows 命令行下执行PHP脚本?

cmd - windows 命令行下执行PHP脚本?

WBOY
WBOYOriginal
2016-06-06 20:25:091696browse

windows 命令行下执行PHP脚本?能给个dmeo吗?我执行了好几次都是

cmd - windows 命令行下执行PHP脚本?

回复内容:

windows 命令行下执行PHP脚本?能给个dmeo吗?我执行了好几次都是

cmd - windows 命令行下执行PHP脚本?

路径不对,比如你的htdocs 前如果是./,那也就是说htdocs位于xampp/php 下,这不是你的目录结构吧?

你的路径写对了吗……

很明显你的路径出错了,看看我下面的示例。

相对路径
cmd - windows 命令行下执行PHP脚本?

绝对路径
cmd - windows 命令行下执行PHP脚本?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn