Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Associate a .php file with a project
Associate a .php file with a project [message #81105] Fri, 03 October 2008 06:09 Go to next message
Christopher Glaeser is currently offline Christopher GlaeserFriend
Messages: 2
Registered: July 2009
Junior Member
Just getting started with Eclipse and PDT. I can execute and debug an
open .php file using the right-click Debug As->PHP Script, but when I
click on the bug icon, Eclipse opens and executes another .php file.
Apparently, I need to associate the .php file with the project, but I'm
not sure how to do that. Am I explaining this sufficiently? Any
suggestions or hints?

Best,
Christopher
Re: Associate a .php file with a project [message #81150 is a reply to message #81105] Sat, 04 October 2008 04:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

Is the .php file IN a project?

If not, create one, then copy/move the file into it.

If so, and the project doesn't have the PDT nature, you can add it:

http://wiki.eclipse.org/PDT/FAQ#How_do_I_convert_an_existing _project_to_use_PDT.3F

Nick

Christopher Glaeser wrote:
> Just getting started with Eclipse and PDT. I can execute and debug an
> open .php file using the right-click Debug As->PHP Script, but when I
> click on the bug icon, Eclipse opens and executes another .php file.
> Apparently, I need to associate the .php file with the project, but I'm
> not sure how to do that. Am I explaining this sufficiently? Any
> suggestions or hints?
>
> Best,
> Christopher
>
>
Re: Associate a .php file with a project [message #81427 is a reply to message #81150] Thu, 09 October 2008 06:09 Go to previous messageGo to next message
Christopher Glaeser is currently offline Christopher GlaeserFriend
Messages: 2
Registered: July 2009
Junior Member
> Is the .php file IN a project?

Sorry for being so dense, but I don't know what IN means. I have several
project test folders, each contains a .project file and a .php file. I can
execute any of the .php files by opening it and using right click RunAs, but
I can't figure out how the Bug icon is linked to a particular project and
..php file. When I click on the bug icon, it randomly (from my point of
view) executes one of the other .php files, not the one that I currently
have open and in view. How is the Bug icon associated with a particular
project and .php file?

Best,
Christopher
Re: Associate a .php file with a project [message #81689 is a reply to message #81427] Sun, 12 October 2008 06:28 Go to previous message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

Try Window > Preferences > Run/Debug > Launching > Launch Operation >
(*) Launch the selected resource > (*) Launch the associated project

Run As and Debug As are launched the same way.

Christopher Glaeser wrote:
>> Is the .php file IN a project?
>
> Sorry for being so dense, but I don't know what IN means. I have several
> project test folders, each contains a .project file and a .php file. I can
> execute any of the .php files by opening it and using right click RunAs, but
> I can't figure out how the Bug icon is linked to a particular project and
> .php file. When I click on the bug icon, it randomly (from my point of
> view) executes one of the other .php files, not the one that I currently
> have open and in view. How is the Bug icon associated with a particular
> project and .php file?
>
> Best,
> Christopher
>
>
Previous Topic:'selection job title' error in pdt, cannot fix
Next Topic:"PDT 1.0.3 All-In-One (Linux GTK)" link does not work
Goto Forum:
  


Current Time: Sat Mar 02 04:53:56 GMT 2024

Powered by FUDForum. Page generated in 0.02329 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top