使用php为本地html文件生成url

Posted Xylophone

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用php为本地html文件生成url相关的知识,希望对你有一定的参考价值。

1. 查看你是不是有php

   which php

2.  假设你的Demo.html 路径为 /Users/Sheron/Downloads/Demo.html 

   

cd /Users/Sheron/Downloads/
php -S localhost:8080

3.  在浏览器打开 https://localhost:8080/Demo.html 就可以了

 

 

以上是关于使用php为本地html文件生成url的主要内容,如果未能解决你的问题,请参考以下文章