php -S 127.0.0.1:8000
开启php的内置服务器
脚本 index.php 内容 echo "hello";
访问 localhost:8000/index.php 输出 hello;
修改脚本内容为 echo "hello world";
访问 localhost:8000/index.php 还是输出 hello;
为什么会这样? 怎么解决这个问题?
php -S 127.0.0.1:8000
开启php的内置服务器
脚本 index.php 内容 echo "hello";
访问 localhost:8000/index.php 输出 hello;
修改脚本内容为 echo "hello world";
访问 localhost:8000/index.php 还是输出 hello;
为什么会这样? 怎么解决这个问题?
2 回答1.6k 阅读✓ 已解决
1 回答1.4k 阅读✓ 已解决
2 回答1k 阅读✓ 已解决
2 回答1.1k 阅读
1 回答946 阅读
1 回答899 阅读
1 回答897 阅读
我觉得极大的可能是你没改对文件。。。
或者是你浏览器缓存太大,那就 F12 后勾选上 disabled cache
不过我还是觉得你没改对文件,你可以把你当前认为是正在访问的 index.php 删掉看能否404,或者修改后重启下服务器,看能不能访问到你修改后的内容