An Oracle blog about NetBeans for PHP

FTP support added

Guest Author

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.

Join the discussion

Comments ( 52 )
  • Nat Woodbridge Friday, August 8, 2008

    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.

  • Petr Saturday, August 9, 2008

    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.



  • duane gran Monday, August 11, 2008

    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?

  • Tomas Mysik Tuesday, August 12, 2008

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



  • Zermatt Chris Friday, August 15, 2008

    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.



    PS. A PHP debugging ability would be the icing on the cake!

  • song Wednesday, August 20, 2008

    Why not support SFTP?

  • Petr Thursday, August 21, 2008

    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.



  • Alex Tuesday, September 2, 2008

    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!

  • Tomas Mysik Wednesday, September 3, 2008

    Hi Alex,

    thanks for your positive feedback! We will try to improve all the areas of our PHP support for the next release.



  • Geoffrey Wednesday, September 10, 2008

    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.

  • Petr Thursday, September 11, 2008

    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.



  • Neal Thursday, September 18, 2008


    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.



  • Petr Thursday, September 18, 2008

    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 )



  • wk Sunday, October 19, 2008

    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?

  • Petr Sunday, October 19, 2008

    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?



  • Roky Saturday, November 22, 2008


    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.



  • guest Saturday, November 22, 2008

    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?

  • LM Monday, November 24, 2008

    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"

  • Petr Tuesday, November 25, 2008


    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.


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



  • LM Wednesday, November 26, 2008

    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.

  • David Thursday, November 27, 2008

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


    P.D: sorry for my english ;-)

  • Petr Thursday, November 27, 2008

    Hi LM,

    It's ok. We want to add some option for choosing the extensions for temp files.



  • Petr Thursday, November 27, 2008

    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.



  • Olaf Thursday, November 27, 2008


    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 :)

  • Azizur Rahman Monday, January 5, 2009

    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.

  • Darren Smith Wednesday, January 28, 2009

    +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

  • guest Saturday, February 14, 2009

    +2 to Zermatt Chris' suggestions :] lack of smart sync support it's the only thing that prevent me to use netbeans for php atm.

  • Matt W. Sunday, February 15, 2009

    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.

  • Travis Saturday, February 28, 2009

    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.

  • Túbal Martín Friday, March 20, 2009

    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.

  • YAAP Tuesday, June 23, 2009

    +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 ;)

  • guest Wednesday, July 22, 2009

    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 (only to

    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.

  • .fay Tuesday, August 4, 2009


    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

  • Kaan Soral Thursday, September 3, 2009

    As far as i searched there is no version checking for FTP (at the current time), so Netbeans Ftp is useless for collaborative projects

  • Sid Tuesday, September 15, 2009

    +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)

  • jmail Saturday, September 19, 2009


    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 :(


    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


  • links of london Friday, October 30, 2009

    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.

  • netbeans fan Tuesday, November 3, 2009

    @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!

  • jason Wednesday, November 11, 2009

    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?


  • Matthieu Wednesday, December 9, 2009


    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!

  • Petr Pisl Wednesday, December 9, 2009

    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?



  • complexe vitamine b Friday, December 18, 2009

    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.

  • Marcus Kielly Tuesday, March 2, 2010

    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:


    Can anyone help me get this configured correctly?

    Can anyone help me get this configured correctly?

  • Wilmsoft Thursday, March 4, 2010

    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!

  • ideea Saturday, April 17, 2010

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


  • Todd Sunday, June 6, 2010

    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?

  • Samir Patel Wednesday, January 26, 2011

    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.

  • Phil Friday, February 18, 2011

    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!

  • guest Tuesday, June 21, 2011

    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

  • guest Thursday, June 23, 2011


    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

  • pierlo Tuesday, June 12, 2012

    +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!!! :)

  • guest Sunday, September 23, 2012

    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.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.