0

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.

4

1 回答 1

0

首选方法是使用运行菜单中的运行文件(默认情况下为+ ),仅调试当前文件也是如此。ShiftF6

如果没有找到 index.php,您还可以将Apache配置为查找Alapok.php 。通过将Alapok.php添加到httpd.confDirectoryIndex中的指令来做到这一点。这样,当您按下Run project时,您应该能够执行 Alapok.php 。要调试项目,您还应该在 NetBeans 项目配置中将Alapok.php设置为索引文件。

于 2011-07-09T10:25:05.727 回答