Search code examples
notepad++server-sidefilezilla

How to make Notepad++ run the PHP file on the server that I set?


It is my first time touching on php and I'm learning the basics of it. I've used Notepad++ for all of my HTML, CSS, and javascript files. Since, theses three are able to test and run locally, php isnt because it's a server side which requires a server to run. I was wondering, if there's a way to make Notepad++ run the file on the server?

In the Notepadd++ title header, it gives the local directory "C:\Users\Jaime\Desktop\grade.php" of my file, but can this directory be altered to something like "http://" indicating it's being tested and run on the internet?

If not, is there anything else I can use to efficiently run php files without having to refresh and put the files in Filezilla to see the changes made?

Thanks!


Solution

  • What you probably need is an FTP Synchronize plugin that will allow you to edit a copy of your php file and then synchronize it to the server.

    How to Install:

    1. Make sure that your Notepad++ is closed

    2. Download from this link . I choose version 0.9.6.1. Unpack or Unzip to \Notepad++\plugin folder.

    3. It will have its own folder so copy or cut and paste the files to \Notepad++\plugin

    4. Read the file named "What file to use" so that you will know which to use. In my case I used FTP_synchronize.dll

    5. Run your Notepad++ and it will tell you that it will remove the unwanted files and just click Ok for it.

    6. Go to Plugin-->FTP Synchronize-->Show FTP Folders. And presto there you have it!

    How to Connect:

    Go to menu Plugins-->FTP Synchronize-->Show FTP Folders

    Go to Menu Plugin

    Click Open Settings Dialog

    enter image description here

    Click the New Button then type-in the Address, Port, Username, Password and check Active on Connection Mode. And finally Click OK.

    enter image description here

    Click Connect

    enter image description here

    Click upload Current File to Folder

    enter image description here

    Then check your website and in my case the files uploaded are on the login name that I used that turned into a folder. And inside the folder are the files that I uploaded. Or of course you could really go directly to the wwwroot folder (or whatever folder name for your root) if you like so that you don't have to transfer the files.