dqhnp44220 2015-05-15 05:04
浏览 192

php在本地打开其他文件

So I have an index.php file and a scrapper.php files in the same directory. I use my mac terminal in that directory, and launch the php -S localhost:8888. When I go to localhost:8888, the index.php shows up. Which is great.

However, I also want to see the scraper.php file in my browser but I don't know how. Please help me. So far I've tried:

http://localhost:8888/scraper (which only shows my index.php).

I also included <?php include("./scraper.php"); ?> in my index.php.

I can see the interaction in my terminal: [Thu May 14 21:57:43 2015] 127.0.0.1:60411 [200]: /background.jpg [Thu May 14 21:57:45 2015] 127.0.0.1:60416 [200]: /scraper

But now broswer. Please help.

  • 写回答

1条回答 默认 最新

  • douhe4336 2015-05-16 07:51
    关注

    sgt BOS's solution worked. Need to append .php at the end

    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大