Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/273.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何告诉Eclipse在PHP项目中运行哪个文件?_Php_Eclipse_Eclipse Pdt - Fatal编程技术网

如何告诉Eclipse在PHP项目中运行哪个文件?

如何告诉Eclipse在PHP项目中运行哪个文件?,php,eclipse,eclipse-pdt,Php,Eclipse,Eclipse Pdt,我在Ubuntu上运行Eclipse Luna(4.4.0) 我的PHP项目中有一些文件。例如,我的项目中有两个文件:index.php和solve.php,我正在编辑solve.php,然后按F11。Eclipse将运行solve.php,但我还是希望它运行index.php 我应该怎么做才能获得这种行为?我认为您只需要为项目创建一个调试配置,将主php文件作为项目的主文件。看一下如何正确配置它 查看文档了解更多信息。似乎我必须为每个文件进行调试配置。这似乎不是最好的办法。无论如何,我可以为

我在Ubuntu上运行Eclipse Luna(4.4.0)

我的PHP项目中有一些文件。例如,我的项目中有两个文件:
index.php
solve.php
,我正在编辑
solve.php
,然后按F11。Eclipse将运行
solve.php
,但我还是希望它运行
index.php


我应该怎么做才能获得这种行为?

我认为您只需要为项目创建一个调试配置,将主php文件作为项目的主文件。看一下如何正确配置它


查看文档了解更多信息。

似乎我必须为每个文件进行调试配置。这似乎不是最好的办法。无论如何,我可以为每个文件做一个运行配置。