PHP Application from Remote Server
NetBeans 6.7 is nearly out so it's time to start developing new features for the next release...
Today, I would like to inform you that we have just added one thing that could help people who would like to develop their PHP applications that are on a remote server. For such users, we have added a new PHP project wizard that takes care about correct project setup. Now, let's try to create such project:
First, invoke new project wizard, select PHP and then PHP Application from Remote Server.

The next step, Name and Location, is already well-known so let's skip it here and continue with the last step.

As you can see, NetBeans asks you only for minimum information - project URL (to be able to run the project) and a remote server together with a remote directory (to be able to download/upload the project).
If we click Finish, remote files are downloaded to the newly created project.

Of course, everything is logged so one can see the progress as well as investigate if any error occurs.

The newly created project is properly configured so every single change to your source files should be immediately propagated to your remote server so you can easily run the project or a file.

That's all for today, we hope that you will welcome this feature, especially users who don't have their own server/PHP/database installed locally. And as always, please give it a try and report all the issues you find, thanks a lot.

Wow, MS Visual Studio has had this sort of capability for years now. It's good to see this developing for NetBeans. One area I hope you improve on VS is the integration with CVS and remote sites. This is difficult in VS, as Microsoft prefers to integrate more closely with their own content management software. It would be especially great if CVS integration would allow for a seamless build, deploy-to-test, deploy-to-prod scheme. That would work well with our dev/prod VM scheme.
Posted by Charles Soto on June 08, 2009 at 05:24 PM CEST #
Dobrý den,
nevím, kde jinde se můžu zeptat, tak se ptám tady.
Kde jde nastavit defaultní šablonu pro PHP projekt?
Když vytvořím nový projekt, vždy má index.php doctype html transitional.
Posted by Lukas on June 08, 2009 at 10:38 PM CEST #
Nothing about how source files under version control will be handled?
Posted by 218.214.126.215 on June 09, 2009 at 05:03 AM CEST #
hi, thanks for this feature.
why can not i select folders to download?
i dont need folders with images, styles, files etc
Posted by murwazy on June 09, 2009 at 09:18 AM CEST #
To Charles Soto:
Sorry, I don't understand what you mean exactly; NetBeans has built-in support for CVS, SVN and HG.
Thanks,
Tomas
Posted by Tomas Mysik on June 09, 2009 at 01:29 PM CEST #
To Lukas:
Zkuste mrknout sem:
Tools > Templates (pak PHP).
HTH,
Tomas
PS: BTW anglictina je preferovany jazyk ;)
Posted by Tomas Mysik on June 09, 2009 at 01:31 PM CEST #
To 218.214.126.215:
Not sure what you mean exactly; if one uses any VCS for his/her project then he/she probably doesn't need any FTP/SFTP... Of course, this is preferred and recommended.
Tomas
Posted by Tomas Mysik on June 09, 2009 at 01:32 PM CEST #
To murwazy:
Yes, this is a place for improvement - could you please file an ENHANCEMENT using NB IssueZilla (URL in blog post)? I would add some simple include/exclude pattern, not only for this wizard but for PHP projects in general.
Thanks,
Tomas
Posted by Tomas Mysik on June 09, 2009 at 01:35 PM CEST #
Tomas Mysik:
http://www.netbeans.org/issues/show_bug.cgi?id=166783
Posted by murwazy on June 09, 2009 at 01:56 PM CEST #
To Tomas Mysik:
právě že tak jsem to zkoušel, ale tímto způsobem nenastavím defaultní šablonu pro index.php
Posted by Lukas on June 09, 2009 at 05:00 PM CEST #
To Lukas:
Mate pravdu, ta stranka je primo soucasti PHP projektu. Z toho bohuzel plyne, ze ji nelze zmenit. Nicmene, toto IMHO neni zasadni bug, protoze:
- clovek nevytvari novy projekt tak casto,
- work around je jednoduchej - smazat vygenerovany index.php a vytvorit novou stranku
Pokud nesouhlasite, zadejte bug a uvedte use case, proc je to pro Vas tak dulezite.
Diky,
Tomas
Posted by Tomas Mysik on June 10, 2009 at 12:59 PM CEST #
i would like to try this but it looks that the relases of 13 and 14 june are broken (bugs are in issuezilla) and they eat up all the memory.
i'm wondering, is there a place to read cvs/mercurial daily changelog messages ?
Posted by gino pilotino on June 14, 2009 at 10:33 PM CEST #
To gino pilotino:
For PHP, you can subscribe to users@php.netbeans.org here [1].
Tomas
[1] http://www.netbeans.org/community/lists/top.html
Posted by Tomas Mysik on June 15, 2009 at 09:36 AM CEST #
To gino pilotino:
Sorry, I pointed you to the incorrect mailing list, it's for PHP users; for commit logs, please subscribe to cvs@php.netbeans.org. Instructions are on the same page.
Tomas
Posted by Tomas Mysik on June 15, 2009 at 09:49 AM CEST #
Hi, I think Netbeans its a great IDE for php.
I also write php-gtk apps and I thinks it will be nice if you add support for this extension.
I allready have a lot of equivalen php documented source files for the gtk extension for the code completion feature, the rest its just the same as the php local script.
if you want those php documented files, let me know
./XeKtRuM
Posted by XeKtRuM on June 15, 2009 at 05:48 PM CEST #
To XeKtRuM:
Could you please send me (tomas dot mysik at sun dot com) what you have? I would look at it. Or maybe better, you can file an issue and add an attachment.
Thanks a lot.
Tomas
Posted by Tomas Mysik on June 16, 2009 at 10:27 AM CEST #
Is there a plan of creating a common service in future for remote server connection, like Eclipse RSE.
I think it may be provided the following feature.
1. Connection management in "Service" window. Should support ftp,ssh and secured style.
2. Create a single connection instance between remote folder and local NetBeans project.
3. Synchronization rule, automactically or by some actions(synchronized on save).
4. Can use diff tool to compare local and remote file.
Posted by hantsy on June 23, 2009 at 05:43 AM CEST #
This is goob, but what if I wont just edit one single line in one page on a remote server ?? I do not wont to download all files to do that =(
It's better use some ftp browser. Is it possible ?? Do you plan to do this in future??
Posted by YAAP on June 25, 2009 at 10:16 AM CEST #
I think that eclipse rse behaviour would be perfect too ...
Posted by meigallodixital on June 30, 2009 at 11:58 PM CEST #
i would like to try this but it looks that the relases of 13 and 14 june are broken (bugs are in issuezilla) and they eat up all the memory.
Posted by oteller on July 02, 2009 at 06:14 PM CEST #
sağolasın.
Posted by haberler on July 02, 2009 at 06:15 PM CEST #
thanlss.
Posted by tatil yerleri on July 02, 2009 at 06:15 PM CEST #
Sorry, I don't understand what you mean exactly; NetBeans has built-in support for CVS, SVN and HG.
Posted by tatil hotel on July 02, 2009 at 06:15 PM CEST #
Wow, MS Visual Studio has had this sort of capability for years now. It's good to see this developing for NetBeans. One area I hope you improve on VS is the integration with CVS and remote sites. This is difficult in VS, as Microsoft prefers to integrate more closely with their own content management software. It would be especially great if CVS integration would allow for a seamless build, deploy-to-test, deploy-to-prod scheme. That would work well with our dev/prod VM scheme.
Posted by Konteyner on July 02, 2009 at 06:16 PM CEST #
thanks for post
Posted by istanbul transfer on July 17, 2009 at 05:30 PM CEST #
heheheh :)
Posted by istanbul transfer on July 17, 2009 at 05:30 PM CEST #
good post
Posted by istanbul transfer on July 17, 2009 at 05:31 PM CEST #
Good job.. İ like it.
Posted by Lida Fx15 Biber Hapı İkibindokuz Seo Yarışması on August 21, 2009 at 07:56 PM CEST #
"Not sure what you mean exactly; if one uses any VCS for his/her project then he/she probably doesn't need any FTP/SFTP... Of course, this is preferred and recommended."
Ok, if you develop pages locally. I need to send some pages to server to test them, there's no reason to commit them to vcs if they're not yet working. Upload on save is not always good, because I sometimes need to make operations on remote copy and not local, for time being I have to have open netbeans and ftp simultaneously.
Posted by yetihehe on August 24, 2009 at 07:29 PM CEST #
It would be especially great if CVS integration would allow for a seamless build, deploy-to-test, deploy-to-prod scheme. That would work well with our dev/prod VM scheme.
Posted by deeper voice on August 29, 2009 at 12:09 PM CEST #
i've just installed nb 6.7.1 on opensolaris, but i am unable to find "php app from remote server". Where can i find it? Any plugin correspond.
thanks
Posted by 82.122.73.97 on September 26, 2009 at 07:59 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 09:34 AM CET #
thank you article..
Posted by lida Fx15 Biber Hapı İkibindokuz Seo Yarışması on November 02, 2009 at 02:34 PM CET #
i've just installed nb 6.7.1 on opensolaris, but i am unable to find "php app from remote server". Where can i find it? Any plugin correspond.
thanks
Posted by UGG Classic Short on November 14, 2009 at 06:59 AM CET #
The wizard php app from remote server was added in NetBeans 6.8.
Posted by Petr Pisl on November 16, 2009 at 04:41 PM CET #
very important article so very thank you
Posted by porno video izle on November 21, 2009 at 09:38 PM CET #