facebook

use PHP in MyEclipse

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #680050 Reply

    knowledgeplaces
    Participant

    I would like to use MyEclipse on a WordPress project, which means coding in PHP.
    How can I import my PHP files in MyEclipse? How can I activate PHP syntax validation?
    I use latest version of MyEclipse. I found some doc on the web, but it is about CodeMix and seems deprecated.

    #680051 Reply

    Brian Fernandes
    Moderator

    You can install the PHP Development tools into MyEclipse and this will add the PHP support you need. To do this, go to Help > Install from Catalog … and then you can search for, “PHP Development Tools” – you should see version 7.1 listed. Go ahead and install this and restart MyEclipse.

    You should now be able to use File > Open Projects from File System to point to the folder containing the files you would like to edit. Another option is to create a new PHP project and import / reference your files from within that folder. More info here: https://help.eclipse.org/latest/index.jsp?topic=/org.eclipse.php.help/html/table_of_contents.html

    Hope this helps!

    #680232 Reply

    knowledgeplaces
    Participant

    Hello Brian,
    I have installed PHP Development tools and restarted MyEclipse.
    Then, when I try File > Open Projects from File System and point to the folder containing my files, and then click on Finish, nothing happens. No error, but the project does not appear in MyEclipse Explorer.
    When I try the other option, create a new PHP project and import my files, I get an error, see attached screen copy.
    Basically, I want to use MyEclipse to edit PHP files of a WordPress theme and WordPress plugins, and of course I don’t want to move the source since WordPress and related local web site are already configured and running well.

    Attachments:
    You must be logged in to view attached files.
    #680243 Reply

    Brian Fernandes
    Moderator

    It’s odd that the Open Projects from File system does not work – that wizard is supposed to create a dummy Eclipse project if one is not already there in that location. Could you check the Project Explorer view as well, or restart and try again? It’s also possible that you have a working set filter selected in the ME Explorer view (check the options in the view menu). Could you look at the wp-content folder in the Windows Explorer and see if there’s a .project file in there?

    As for the other technique, looks to me like a bug in the PHP wizard – have you tried a different project name (in case this is the same project name you used for the first technique, which will now be “used” somehow).

    A final solution would be to use the PHP wizard above to create a new PHP project. Then, create a folder in the project using Eclipse’s new folder wizard. However, use the advanced option to link to your wp-content folder (see screenshot) – this will link to your existing folder without moving the resources, and you should be able to edit them in MyEclipse.

    Hope this helps!

    Attachments:
    You must be logged in to view attached files.
    #680279 Reply

    knowledgeplaces
    Participant

    Hi Brian, I made some progress. I was only able to use the last option you proposed: use the PHP wizard to create a new PHP project. Then, create a folder in the project using Eclipse’s new folder wizard. Use the advanced option to link to my wp-content folder.
    The folders and files appear in MyEclipse Explorer.
    I can edit them, but I cannot save my edits, see attached screen copy.
    My wp-content folder is a sub-folder of a WordPress local install, and I use this local install to have a local WordPress test site on my local machine, hosted on the IIS server provided by Win11.
    So, it sounds that all my issues may be related to a permission issue on this folder.
    If you tell me which specific security permissions I must give to MyEclipse on this folder, it should solve the problem.

    Attachments:
    You must be logged in to view attached files.
    #680283 Reply

    Brian Fernandes
    Moderator

    Eric,

    Right, permissions would explain why the other options are failing. If you want a reduced list, I believe the Modify, Read, Write, and List folder contents permissions might be enough for MyEclipse to function. However, see no harm in giving all permissions on the folder to the user that you use to run MyEclipse.

    Hopefully this fixes things, and you may even want to go back to creating a new PHP project in this location as it might set up additional natures / facets in the project that would allow you to fine tune the PHP support for the project.

    #680290 Reply

    knowledgeplaces
    Participant

    Hi Brian, permissions updated and edits are saved.
    I can now use MyEclipse for all my devs: Java, Angular and PHP. Great!

    #680307 Reply

    Brian Fernandes
    Moderator

    Eric,

    You are living the MyEclipse dream! Glad you are up and running, and thank you for keeping us posted. Happy coding!

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: use PHP in MyEclipse

You must be logged in to post in the forum log in