FTP support added

Recently, FTP support has been added to Netbeans PHP IDE. Here are the steps how it can be used:

  1. 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).

  2. Setup FTP connection.

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

  4. Check the list of files and optionally modify it.


  5. Check the log and transfer summary.

Comments:

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 12: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 04: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 11, 2008 at 08:15 PM 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 03: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 05:05 AM CEST #

Why not support SFTP?

Posted by song on August 20, 2008 at 08:41 PM 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 02: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 11:51 AM 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 02: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 12: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 11:13 AM 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 10:24 AM 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 10:47 AM 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 06:46 AM 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 04: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 02: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 guest on November 22, 2008 at 02: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 02: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 07:27 AM 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 09:39 AM 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 03: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 05:27 AM 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 05:38 AM 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 08:06 AM 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 06:09 AM 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 28, 2009 at 06:54 PM 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 guest on February 14, 2009 at 05:32 AM 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 15, 2009 at 10:26 PM 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 February 28, 2009 at 09:36 PM 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 07:13 AM 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 05:33 AM 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 guest on July 22, 2009 at 02: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 05:47 AM 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 11:52 AM 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 15, 2009 at 09:43 PM 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 19, 2009 at 07:23 PM 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 02: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 02:40 PM CET #

Hi All.

Is there a way to make netbeans store the configuration data for FTP within the netbeans project folder so that if I open the project through the network on another machine it already has those details present?

Thanks

Posted by jason on November 11, 2009 at 06:22 PM CET #

Hello,
I'm trying netbeans for the first time and i wanted to know if we can set chmod properties for uploaded files?
Actually, all files i've uploaded are in chmod 600 and i need them to be at least 605.
Is there an option to configure in netbeans?
I bypassed this problem using filezilla to change rights but this is not convenient.
thanks for your work!

Posted by Matthieu on December 09, 2009 at 02:52 AM CET #

Hi Matthieu,

unfortunately such option is missing there for newly uploaded files. If you rewrite the files, then the original rights are kept. But you are right such option should be there.

Could you describe your case? I mean, do you need to set the rights per project, per folders or per files?

Thanks,
Petr

Posted by Petr Pisl on December 09, 2009 at 06:14 AM CET #

Directory deployment provides faster development of portlet's JSP, CSS etc. without the need to redeploy portlet each time it's modified or changed. Deploy on Save along with Directory Deployment provides class reloading without needing to redeploy the application everytime the class file is changed. Using "Deploy On Save" feature, by just changing and saving a java file, the java file is automatically compiled and the portlet application is reloaded to reflect the changes.

Posted by complexe vitamine b on December 18, 2009 at 05:51 AM CET #

Hi, I've set up my FTP connection for my project, but when it uploads the file, it adds a directory named after the project to the uploads (which means it isn't going to the right folder). i.e.

initial directory set to '/httpdocs'; no upload directory specified.

I upload a file from my local folder: project name/library/script.php I want it to go here: FTP/httpdocs/library/script.php

but it's going here:

FTP/httpdocs/PROJECTNAME/library/script.php

Can anyone help me get this configured correctly?

Can anyone help me get this configured correctly?

Posted by Marcus Kielly on March 02, 2010 at 09:25 AM CET #

it'd be nice if you used better descriptions for 'upload' and 'download'.

Different vendors use different meanings. Upload 2 me? From me? download 2 Server? from Server?

I like the terms "Get" and "Put" or at least add "Upload to server" or "Upload file to this computer"

I just overwrote a file by changing to a different computer... Work on one is now gone!

Posted by Wilmsoft on March 04, 2010 at 02:15 PM CET #

You really should make new Remote file system, look at ZS remote file system, its perfect!
thanks.

Posted by ideea on April 17, 2010 at 12:47 PM CEST #

Is there no "Remote Browser" ? So If I don't have the files I can't download them since I can't browse the remote server?

Posted by Todd on June 07, 2010 at 12:55 AM CEST #

I think it would be brilliant for the IDE to support directly editing files on a remote fileystem via FTP.

This is an absolutely essential feature to a lot of PHP developers.

I think its too time consuming to have to download the entire project locally to make a few edits.

How else is a remote filesystem to be mounted?

SMB can be used on a remote linux server, but on a mac this is nothing but problematic.

Please make this great product even greater by enabling direct editing of remote files via FTP.

Thank you and God bless.

Posted by Samir Patel on January 26, 2011 at 07:57 AM CET #

Is there no way to specify the source folder?

e.g. I want to only upload project/html/xxx to <server>:xxx, but changing src.dir to html (or ./html) doesn't work; files always go to <server>:html/xxx

This is really frustrating!

Posted by Phil on February 18, 2011 at 02:10 PM CET #

Hi Duane,

Nice to see FTP making it into NetBeans
I would like to take the NB IDE to sync contact list (N B in client side ) in other hand take (PHP in server side local host) and DB IN SQL
the idea is ubload the contact list to server and downloade to phone
(NB client side)
is it possible to help me with some suggestions...
me to you many thank

Posted by guest on June 21, 2011 at 03:48 PM CEST #

HI
i would like to upload and download the contactlist iam using in client side netbean can i use PHP in server side and use MY SQL in database
plez iam waiting the guidelines

Posted by guest on June 24, 2011 at 01:17 AM CEST #

+1 on the 'upload local changes' suggestion a-la Coda !!! that would rock so much!
All it does is take a note of all the changed files and then deploy only those. It's even simpler than sync, just keep a DB of the changed files since last deploy / upload.

Pleeeeeeease!!! :)

Posted by pierlo on June 12, 2012 at 12:11 PM CEST #

This is Nice, but how do I Export and Import the Connections?

All connections for a Project should be attached to the Import and Export of a Project. However when I Import and Export a Project. The FTP connections are not there.

This is a common practice and I need this as I have many developers working on the same projects.

We currently use Dreamweaver as it has that feature.

Posted by guest on September 24, 2012 at 01:28 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today