dsio68964998 2011-07-07 11:13
浏览 31
已采纳

EasyPhp和Netbeans - 如何配置项目以正常运行.php-s

I have the following problem: screen image

The NetBeans project configure to use the localhost (http://127.0.0.1:8888/Php_alapok/) but if I want to only the Alapok.php file run in the browser (http://127.0.0.1:8888/Php_alapok/Alapok.php),however it not possible! Because the browser always invites the index.php or that page that you see on the screen image. How can I aim that only the Alapok.php run in the browser, and don't the index.php?

I use the newest NetBeans IDE and EasyPhp.

  • 写回答

1条回答 默认 最新

  • duanfoumi5620 2011-07-09 10:25
    关注

    Preferred way will be to use Run file from Run menu (<kbd>Shift</kbd>+<kbd>F6</kbd> by default), same goes for debugging only current file.

    You can also configure Apache to look for Alapok.php if no index.php was found. Do it by adding Alapok.php to the DirectoryIndex directive in httpd.conf. This way you should be able to execute Alapok.php when yuo press Run project. To debug project you should also set Alapok.php as Index file in NetBeans project configuration.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 网络设备配置与管理这个该怎么弄
  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器