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

风格不统一 提交于 2019-12-01 07:36:24

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.

Faraz

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"/>

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>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!