How do I add the PHP libraries to my basic remote project in eclipse?
Asked Answered
U

3

5

I have a basic project that was created from a remote system using the eclipse tools to setup that connection. I right clicked on the folder on my remote system and chose create a new project. Now, I want to add PHP to the build path, but it is just a basic project. How do I quickly add those libraries with Eclipse PDT or Zend Studio installed?

Urano answered 12/12, 2010 at 10:33 Comment(0)
G
3

Not sure if this what you are looking for, but try

  • Right click the project folder in the Explorer and click Open Project.
  • Right click the project folder again.
  • Find and click Configure from the Context Menu
  • In the submenu find and click Add PHP Support

In case you want to configure the include_path:

  • Right click the project folder in the Explorer and click Open Project.
  • Right click the project folder again.
  • Find and click Include Path from the context menu
  • In the submenu find and click Configure Include Path
  • Add any resources you need in the tabbed dialog

If both of this is not what you are looking for, please clarify the question.

Gona answered 12/12, 2010 at 10:41 Comment(0)
F
6

When Add PHP Support is disabled but PHP libraries are not included.

  1. Right Click and Open project.
  2. Find .buildpath file.
  3. add the follwing code to it.

Code:

<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
Flori answered 21/5, 2014 at 15:51 Comment(2)
What if we don't have a .buildpath file?Villager
@Villager right click on project -> Build Path > Configure Build Path... click "Add Folder", select the project root directory. Click ok. You should now have a .buildpath fileCornerwise
G
3

Not sure if this what you are looking for, but try

  • Right click the project folder in the Explorer and click Open Project.
  • Right click the project folder again.
  • Find and click Configure from the Context Menu
  • In the submenu find and click Add PHP Support

In case you want to configure the include_path:

  • Right click the project folder in the Explorer and click Open Project.
  • Right click the project folder again.
  • Find and click Include Path from the context menu
  • In the submenu find and click Configure Include Path
  • Add any resources you need in the tabbed dialog

If both of this is not what you are looking for, please clarify the question.

Gona answered 12/12, 2010 at 10:41 Comment(0)
O
0

If there's no file .buildpath in the project's folder (and no "Buildpath" option to be found in the project's context menu), then just create a new file .buildpath with this content:

<?xml version="1.0" encoding="UTF-8"?>
<buildpath>
    <buildpathentry kind="src" path=""/>
    <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
</buildpath>
Ollie answered 5/12, 2017 at 19:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.