J
J
jack72772011-08-24 07:30:59
Blogs
jack7277, 2011-08-24 07:30:59

Alternative to Notepad+ for php redneck coder

Good day everyone.

So, problem. I am writing for the soul for myself on a Wordpress plug-in in Notepad +, everything is fine, but you need to do a huge amount of unnecessary movements.
1. I write a few lines of code (I just started learning php), save it.
2. I open TotalCommander, I upload the file to FTP
3. I switch to the browser, I refresh the page of the activated plugin, I see the result
4. PHP code destroys everything, I see a white sheet
5. I go to the plugin section, deactivate it, activate it again, I see the error
6. In the code I output variables to the browser window to see how the code is executed
7. Goto #1

How can I shorten this painful path?

Answer the question

In order to leave comments, you need to log in

11 answer(s)
A
anitspam, 2011-08-24
@jack7277

set up a developer environment on a local machine, install a website on a local machine, install an IDE (Netbeans for example), install support for browser developer tools (firebug + easyXdebug for Firefox for example), read the instructions for debugging code in the IDE.
profit.

P
Phenomen, 2011-08-24
@Phenomen

Notepad++ has a built-in FTP explorer (Plugins -> NppFTP). no need to use TC.

P
pav, 2011-08-24
@pav

try phpstorm. Out of the box, it is possible to work with a remote project via ftp/sftp.

N
Nikita Permin, 2011-08-24
@NekitoSP

The best option would be to run a local web server. Back up everything you've done online, put it on denwer (or any other local web server), and play hard.

B
Botovod, 2011-08-24
@Botovod

1. Set yourself a bunch of Apache+PHP+mySQL. I advise you to search the Internet for AppServ, download and install, it is easy to install.
2. As an editor, I advise SciTE - find a suitable build - it supports coding on almost everything you can think of.
3. edit files directly in the directory where AppServ will be installed (usually c://AppServ/www). You will see the result of your php code immediately after pressing the "save" button.
The disadvantage of this way: if you use databases, you will have to make copies of them on your computer, but it's worth it.

X
xaker1, 2011-08-24
@xaker1

NetBeans has a feature to upload files to the server when starting/saving files.

D
Denis Turenko, 2011-08-24
@Dennion

A little clumsy, but you can use CuteFTP, it has a built-in remote file editor. If you don't like this editor, you can specify a program for editing files in the settings (Notepad +, EditPlus, etc.) It's very convenient for beginners, and the password database in CuteFTP is encoded with a password.

S
Sergey, 2011-08-27
@butteff

IMHO, php designer is the best php ide

D
Dmitry Dobrodelov, 2011-08-24
@alt3rmann

When it happens to me to completely set up a local server and periodically upload the site to the hosting, I use Eclipse + Remote System Explorer and edit everything at once on the hosting via sftp (or ftp).
Now I am writing a plugin for LiveStreet and all actions boil down to the fact that I immediately edit the file on the hosting using the above tools, save it, go to the browser, refresh the page and observe the result.
In addition, I heard that PhpStorm is initially able to edit files remotely.

I
Ilya Plotnikov, 2011-09-07
@ilyaplot

Netbeans, Eclipse. By the way, zend studio is based on eclipse, only the latter is free, just like netbeans

V
Vasily Borisov, 2015-04-23
@yuhenobi

Instead of the proposed heavy and clumsy IDEs , Sublime Text is quite suitable for you , it is less resource-hungry and easier to set up (Trial is eternal, sometimes it begs to be bought, refuse and work on). There are a huge number of plugins for it.
Instead of adventuring with TotalCommander, there's an FTPsync plugin for Sublime Text that updates a file on a remote host when you save a file.
However, this scenario is not very convenient in principle. You have to use a remote server for development.
I strongly advise you to install and configure Denwer and edit the project files locally. And in order not to manually update the page in the browser every time, you can install the LiveReload pluginfor Sublime Text and it will do it for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question