FTP support added
Recently, FTP support has been added to Netbeans PHP IDE. Here are the steps how it can be used:
- Create run configuration "Remote Web Site (FTP)" for your PHP project - in case of existing project, use Project Properties or the same can be done already in new PHP project wizard (the 3rd step).

- Setup FTP connection.

- Download/upload project files (multiple files/folders can be selected).

- Check the list of files and optionally modify it.


- Check the log and transfer summary.


Is it possible to have a text wrap option for the editor, or is there one currently that I have missed. This would be helpful for when dealing with long lines. Thanks.
Posted by Nat Woodbridge on August 08, 2008 at 07:43 PM CEST #
Hi Nat,
unfortunately there is not such functionality yet. Guys from editor infrastructure team are working on this, but I'm afraid that this functionality will not available in NetBeans 6.5.
Regards,
Petr
Posted by Petr on August 09, 2008 at 11:34 PM CEST #
This is excellent news. Am I correct to say that this is ftp and not sftp? Do you anticipate sftp support before the final release of 6.5?
Posted by duane gran on August 12, 2008 at 03:15 AM CEST #
Hi Duane,
unfortunately there's not enough time to have SFTP support for NB 6.5 release. But yes, we would like to have it after 6.5 (maybe in the form of a module on Autoupdate centre, hard to say right now).
Regards,
Tomas
Posted by Tomas Mysik on August 12, 2008 at 10:27 AM CEST #
Hi Duane,
Great to see FTP making it into NetBeans!
For us to make the switch from our other IDEs (yes, multiple!) we'd need both SFTP added *and* the ability to do smart sync'ing.
Dreamweaver's FTP is still the best I've used in an IDE (go figure). At the moment ScriptFTP (http://www.scriptftp.com/) is the best all round solution we've found, but its stand-alone -- to have its basic features integrated into an IDE would be *very* useful, especially when doing combined .js, .php, .html & Java/Groovy projects.
- (S)FTP Synchronize to local/server
- Cloak files/folders easily via the GUI
- Calculate time offsets properly
- Ability to Preview before up/down- loading
As we're doing html, css, javascript, php and Groovy development, it would be absolutely fantastic to be able to standardize on a single IDE.
Cheers,
-Chris
PS. A PHP debugging ability would be the icing on the cake!
Posted by Zermatt Chris on August 15, 2008 at 12:05 PM CEST #
Why not support SFTP?
Posted by song on August 21, 2008 at 03:41 AM CEST #
Hi song,
it's just time issue. We wanted to do it, but we have not enough time to do it in NetBeans 6.5 time frame. We will add the functionality in an update or next release.
Thanks,
Petr
Posted by Petr on August 21, 2008 at 09:29 AM CEST #
Hello Petr,
The FTP functionality is great and so far the best ive used (against dreamweaver and phpdesigner 2008)
Maybe you can incorperate xdebug for live syntax checking in one of the next versions?
Thanks for a great IDE!
Posted by Alex on September 02, 2008 at 06:51 PM CEST #
Hi Alex,
thanks for your positive feedback! We will try to improve all the areas of our PHP support for the next release.
Regards,
Tomas
Posted by Tomas Mysik on September 03, 2008 at 09:27 AM CEST #
Nice, tried it, and works, a few small changes though I would recommend.
1: Take a look at PSPad, ftp connected editing, Apart from PSPad using a temp for the downloaded file, the main point is when you Save, it uploads immediately, in the case of ftp connected source, that is synched with the local version, I may propose that you put a Control-ALT-S or Alt-s for a save and upload in 1 stroke feature.
2: FTP connection though proxy is a must, I work in a secure environment, and this is limiting.
3: FTP delete and save, our servers for security reasons will not allow overwrite, so the FTP need to have a Delete and upload option for saving a file, as a file already existing will prevent overwrite and as a result can not upload, and have to do this manually.
Someone may suggest changing permissions etc, but this is a policy and I am not allowed to change it.
Posted by Geoffrey on September 11, 2008 at 07:49 AM CEST #
Hi Geoffrey,
I will try to answer your questions:):
1: I think this is somehow covered. You can assign a shortcut to the Upload action. Go to the Tools -> Options -> Keymap -> PHP category. The shortcut ALT-S is free so you can use it. The action Upload saves automatically the edited file / files. So when you edit a file and press now ALT-S, then the file is saved and the Upload dialog is opened. After pressing ENTER the Upload action should be executed. But I found a problem in the dialog. Issue http://www.netbeans.org/issues/show_bug.cgi?id=146976 . I hope that it will be fixed soon.
The assigning shortcut is possible from todays build.
2: In Tools -> Options -> General category you can specify the proxy. The ftp connection should go through this proxy. Does it work for you? If not this is a bug. I can not try it now.
3: You are right. We wanted to implement remote file system, where you want to delete and create files, folders. But there is not enough time for NB 6.5. I have entered new enhancement for this http://www.netbeans.org/issues/show_bug.cgi?id=146982 . There is a module from community http://hlavki.blogspot.com/2008/09/i-am-netbeans-fan-so-what.html , but I haven't had time to try it.
Regards,
Petr
Posted by Petr on September 11, 2008 at 06:13 PM CEST #
Petr,
In the the NetBeans 6.5 Beta for PHP release there is not a PHP category within the Tools->Options->Keymap section. My question is will this be added at some point as I wish to add a shortcut for FTP Upload. If anyone else has any information regarding a shortcut for file Upload I would greatly appreciate.
Thanks,
Neal
Posted by Neal on September 18, 2008 at 05:24 PM CEST #
Hi Neal,
this was added after beta. You should use a recent built. It's much faster:). You can use different userdir, if you want to just try a recent built ( http://blogs.sun.com/netbeansphp/entry/userdir )
Regards,
Petr
Posted by Petr on September 18, 2008 at 05:47 PM CEST #
I want to use the FTP feature to upload files to my servers of Hetzner, but there is not allowed to create files with the ~-char (tilde) in the name!
How can I fix it, or what can I do?
Posted by wk on October 19, 2008 at 01:46 PM CEST #
Hi wk,
I'm able to create file with ~ without a problem. For example ~hello.php. Which file do you want to create? And which build do you use?
Thanks,
Petr
Posted by Petr on October 19, 2008 at 11:05 PM CEST #
Hi,
I'm just trying out net beans and so far I like it. Currently I'm using ZEND Studio 5.5a, but it's getting old.
What I wanted to ask is, does-will the netbean support creating a project directly on FTP.
Cheers,
Rok
Posted by Roky on November 22, 2008 at 10:16 PM CET #
Sorry, my comment was sent to quickly. Let me add an example for better ilustration:
1.) I've got a project on FTP called myproject and I don't have any files localy stored
2.) I want to create a new project directly on FTP, without copying files on my local host filesystem.
Why? Because there are some old projects which are only present on FTP and sometimes and need to fix smt really quickly (without syncing my localhost/ftp files).
This functionality is also present in ZEND Studio 5.5a.
Special thing, problem:
When I create a new project from exsisting source I set the source folder to: E:\creatim\imamidejo. After that I tick the "put beans metadata into a seperate directory" and choose F:\Rokm's Documents\NetBeansProjects\imamidejo.
Then I get error message: "Project and Source directory cannot be relativized.".
What I'm doing wrong? Can't I have all projects metadata in a seperate disk/folder?
Posted by 89.142.171.4 on November 22, 2008 at 10:22 PM CET #
Here's the tilde (~) issue clarified:
When Netbeans uploads a file to ftp, it temporarily adds the suffix ".new~" to a given file, so that it doesn't immediately delete the old file on the ftp site. However, some servers DO NOT ALLOW a tilde at the end of a filename. I've had this issue with the server I was working on, so if I upload, I have to do it manually instead of through Netbeans. This issue is really lame, and could be fixed simply by removing the tilde from the suffix, i.e. ".new"
Posted by LM on November 24, 2008 at 10:07 PM CET #
Hi,
To Roky:
>What I wanted to ask is, does-will the netbean
>support creating a project directly on FTP.
Basically no. NetBeans always needs to have local copy of the project. So you need create a local project and upload the source root through a FTP configuration to your server.
To 89.142.171.4:
>Why?Because there are some old projects which
>are only present on FTP and sometimes and need
>to fix smt really quickly (without syncing my
>localhost/ftp files).
I understand your point of view. Unfortunately NB 6.5 supports only the way, that you have to have local copy of the source files. Probably there will be more in the next version, where we want to introduce a FTP explorer and then it will be possible. We will see, whether there will be enough time to implement this.
>When I create a new project from exsisting
>source I set the source folder to: E:\creatim
>\imamidejo. After that I tick the "put beans
>metadata into a seperate directory" and choose
>F:\Rokm's Documents\NetBeansProjects\imamidejo.
>
>Then I get error message: "Project and Source
>directory cannot be relativized.".
>
>What I'm doing wrong? Can't I have all projects
>metadata in a seperate disk/folder?
Basically no. There has to be relative path between your project and source folder.
To LM:
We are aware about this problem and we already track it: http://www.netbeans.org/issues/show_bug.cgi?id=153036 . I hope that it will be fixed soon.
Thanks
Petr
Posted by Petr on November 25, 2008 at 03:27 PM CET #
Great, thanks Petr. Sorry, I didn't mean to sound "complainy," By lame, I meant it was lame that these servers won't allow tilde's, not that Netbeans puts a tilde on the file name.
Posted by LM on November 26, 2008 at 05:39 PM CET #
hi, i'm upload several files of a project via ftp but are upload in binary mode, how can i configure the ftp to upload the files in ascii mode or in automatic mode (select binary or ascii depends file).
Thanks
P.D: sorry for my english ;-)
Posted by David on November 27, 2008 at 11:44 AM CET #
Hi LM,
It's ok. We want to add some option for choosing the extensions for temp files.
Regards,
Petr
Posted by Petr on November 27, 2008 at 01:27 PM CET #
Hi David,
this setting is missing. I expect that you have problems with ending of lines on Windows in different editor than NB. Is it true?
It would be good if you can enter new bug against the ftp support in our issuezilla http://www.netbeans.org/community/issues.html, component php, subcomponent ftp.
Thanks,
Petr
Posted by Petr on November 27, 2008 at 01:38 PM CET #
Hi,
Is anybody thinking about a feature to delete file on FTP server if it is deleted in project?
Presently if I delete file from project and do "Upload" it is not removed from the FTP server.
The same should be done in opposite direction (I mean when I do "Download".
With confirmation dialog :)
Posted by Olaf on November 27, 2008 at 04:06 PM CET #
The only thing stopping me from using this lack of SFTP support that the moment. I have a workaround for this lack of ability.
Use NetBeans as Editor and have WinSCP with "Sync local with remote directory".... WinScp will detect the changes and will upload relevant files automatically and also delete files if you set that configuration.
This work like very well. Hope this helps.
Posted by Azizur Rahman on January 05, 2009 at 02:09 PM CET #
+1 to Zermatt Chris' suggestions. The rudimentary FTP support is the only thing stopping me from switching to Netbeans as it's superior to PDT, Zend, Aptana, et al. in most other respects.
- (S)FTP Synchronize to local/server
- Cloak files/folders easily via the GUI
- Calculate time offsets properly
- Ability to Preview before up/down- loading
Posted by Darren Smith on January 29, 2009 at 02:54 AM CET #
+2 to Zermatt Chris' suggestions :] lack of smart sync support it's the only thing that prevent me to use netbeans for php atm.
Posted by 83.103.90.50 on February 14, 2009 at 01:32 PM CET #
Actually, it is lame that NetBeans will not allow the user to configure the temporary file name suffix so that the tilde issue would not be an issue. Hard coded strings are a big no-no.
Posted by Matt W. on February 16, 2009 at 06:26 AM CET #
Is there any way to force it to either check all files or recheck for sync? Something seems to have really broken since I reinstalled netbeans and syncing no longer is consistent. Previously it was perfect.
Posted by Travis on March 01, 2009 at 05:36 AM CET #
Seriously guys, you are doing a GREAT WORK, but we need SMART SYNC support just like CODA does.
The smart publish all button/action is killer. WE NEED IT.
Posted by Túbal Martín on March 20, 2009 at 02:13 PM CET #
+3 to Zermatt Chris' suggestions =)
I will try to use NetBeans in my own small project, but without editing remote ftp file through some browser it is not possible to develop big project IMHO. Next step will be full sync remote+local project ?? ;)
ps: good IDE, thanks ! Hope it will be my favorite IDE ;)
Posted by YAAP on June 23, 2009 at 12:33 PM CEST #
I use the FTP upload feature of netbeans frequently. However, every once in a while (after using it for several weeks generally) I get something like this:
PORT 127,0,0,1,11,47
500 I won't open a connection to 127.0.0.1 (only to 65.66.151.20)
for every single file that it tries to upload, so none of the files are uploaded. The only solution for this problem I have found is to start a new project with the existing source files.
Why netbeans would connect to the loopback adapter I don't understand.... Anyway, due to this repeated issue, the interface being too cumbersome, and only partially implemented functionality (netbeans does this all to often, the original PHP support was disgraceful) I'm switching to WinSCP seeing as while it doesn't have the best interface for configuring your connection ITS RELIABLE and allows syncing in both directions.
Posted by 65.66.151.20 on July 22, 2009 at 09:35 PM CEST #
Hi
I wasn't able to use FTP features behind a proxy.
I'm sure proxy/FTP settings are correct, is there a bug tracker system where I can report this problem ?
Best regards
Posted by .fay on August 04, 2009 at 12:47 PM CEST #
As far as i searched there is no version checking for FTP (at the current time), so Netbeans Ftp is useless for collaborative projects
Posted by Kaan Soral on September 03, 2009 at 06:52 PM CEST #
+4 on Zermatt Chris's sync suggestions (primarily download on open, maybe even date modified comparison)
And good job on producing, by far, the most usable php IDE, IMHO. And I've tried them all (Zend, Komodo, Aptana, PDT, UEStudio)
The only other feature that I miss from converting from UEStudio is the ability to fold on anything with braces (if, for, switch, etc)
Posted by Sid on September 16, 2009 at 04:43 AM CEST #
Hi!
Great IDE. I have told today that my programmers dreams come true :D I've got supreme IDE for working wiht PHP. Great great great job.
But after while I have realized that on thing is not good :(
Example:
I've got intranet bulided in PHP on remote server for my client. Right now it is about 30k files. That is big company.
When I want to edit files on intranet I need to download all. That is not problem at company - I've got all files on developers machine, but at home there is a problem. I need to download all the stuff. Hours of downloading :(
For now I am using PSPad for directly modyfing files on server and NetBeans for localy changes. But it is very frustraiting.
I would like to take the NB IDE for my company and for every single developer in my group - but think - when 30 developers will download those files what will happend?
And maybe not on right subject, but will be there a support for bazaar?
Once again - great great job :)
Best wishes
jmail
Posted by jmail on September 20, 2009 at 02:23 AM CEST #
It was a very nice idea! Just wanna say thank you for the information you have shared. Just continue writing this kind of post. I will be your loyal reader. Thanks again.
Posted by links of london on October 30, 2009 at 09:37 AM CET #
@Azizur Rahman 10x for the tip with winscp.
I hope that in the near future, the NetBeans team will try to dedicate more time to the FTP/SFTP module. I don't like to switch to another editor when I work remotely.
Keep up the good work!
Posted by netbeans fan on November 03, 2009 at 10:40 PM CET #