X

An Oracle blog about NetBeans for PHP

Running PHP project with Remote Web configuration

Guest Author

Today, we added support for running PHP project with Remote web configuration - how does it work? First, you have to decide whether you want to upload sources automatically before running a project or not. This can be easily done in Run Configuration in Project properties.

Then, if you try to Run project (it works fine for Run file, Debug project and Debug file as well),

the already known Upload window is displayed. If it's the first time you run a project, then all the files are selected.


Then, of course, you edit some files and want to run your project again - what will happen?


Join the discussion

Comments ( 10 )
  • fortruth Friday, August 29, 2008

    Yeah, It's good..

    and if there can filter some files or folders that i don't want to upload to ftp server. such as the .svn folder for svn server. It's some bother to cancel selected one by one...


  • s1m0n Saturday, August 30, 2008

    Hi! I am having problems with the FTP run config on NB6.5B WinVista with a php project. If I try to upload a new project 'test', the project folder is created but no php files are uploaded as there is popup error: "Cannot logout from server ABC.com". In the created folder there is a file named ".pureftpd-upload.48b95463.15.7970.ffa89136" and this is the FTPlog:

    220---------- Welcome to Pure-FTPd [TLS] ----------

    220-You are user number 4 of 50 allowed.

    220-Local time is now 15:08. Server port: 21.

    220-This is a private system - No anonymous login

    220-IPv6 connections are also welcome on this server.

    220 You will be disconnected after 15 minutes of inactivity.

    USER my-user

    331 User my-user OK. Password required

    PASS \*\*\*\*\*\*

    230-User my-user has group access to: my-user

    230 OK. Current restricted directory is /

    TYPE I

    200 TYPE is now 8-bit binary

    CWD /public_html/test

    250 OK. Current directory is /public_html/test

    CWD /public_html/test

    250 OK. Current directory is /public_html/test

    PORT 192,168,1,102,206,25

    200 PORT command successful

    STOR index.php

    QUIT


  • s1m0n Saturday, August 30, 2008

    .... sorry, I just needed to set the ftp conn to annonymous. Thanks anyway. PS: great job


  • Tomas Mysik Sunday, August 31, 2008

    To fortruth:

    SVN metadata folders should not be uploaded to a FTP server - if they are, please file an issue:

    http://www.netbeans.org/issues/enter_bug.cgi?component=php

    Thanks,

    Tomas


  • wiggsfly Wednesday, September 3, 2008

    I cannot find the option for "Upload Files: On Run." Am I missing something?


  • Steph Wednesday, February 4, 2009

    Hi,

    I have the same error with my server.

    "cannot logout from server ABC.com

    Reason: Connection reset"

    I have a remote server that I want to FTP to, but I keep getting this error.

    Is there something I'm missing?


  • Christian Friday, March 13, 2009

    Same problem, server connects successfully, list command is working, traverses all files, but no one is being downloaded; upload works but with same error message at the end (connection reset)

    220 xx.xx.xx.xxx FTP server ready

    USER xxxxxxxxxxx

    331 Password required for xxxxxxxxxxx.

    PASS \*\*\*\*\*\*

    230 User xxxxxxxxxxx logged in.

    TYPE I

    200 Type set to I

    CWD /core/htdocs/callcenter

    250 CWD command successful

    CWD /core/htdocs/callcenter

    250 CWD command successful

    SYST

    215 UNIX Type: L8

    PASV

    227 Entering Passive Mode (xx,xx,xx,xxx,xxx,xxx).

    LIST

    150 Opening ASCII mode data connection for file list

    226 Transfer complete.

    CWD /core/htdocs/callcenter/xxxxxxxxx

    250 CWD command successful

    PASV

    227 Entering Passive Mode (xx,xx,xx,xxx,xxx,xxx).

    LIST

    150 Opening ASCII mode data connection for file list

    226 Transfer complete.

    CWD /core/htdocs/callcenter/xxxxxxxxx

    250 CWD command successful

    .....

    PASV

    227 Entering Passive Mode (xx,xx,xx,xxx,xxx,xxx).

    LIST

    150 Opening ASCII mode data connection for file list

    226 Transfer complete.

    QUIT

    Final message from FTP: Connection reset

    Greets


  • Leandro Wednesday, July 1, 2009

    In my case this problem was caused by firewall.

    Try disabling it.


  • Gabriel Thursday, July 2, 2009

    I confirm it.

    Windows firewall five problems like:

    "cannot logout from server connection reset"

    Disabling it avoid the problem.

    On the other side there is a Debian Etch running PureFTDd.


  • guest Friday, January 15, 2010

    "/>


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