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.

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

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大