I ran into a small problem the other day. The code I had written and tested on my local XAMPP server worked fine, but once uploaded to my hosting server, it did not. I started doing the usual debugging – make a change, ftp to server, refresh browser.
Then I though – hell, there must be an easier way. And there was – using NetBeans (my IDE of choice) I was able to set up a FTP connection to my hosting server. This allowed me to make the changes and simply upload straight from NetBeans to the host.
I know it may only seem like a small amount of time saved – but it does allow for an extra cup of coffee at the end of the day.
So briefly here is how I did it.
Select the project you wish to FTP to the server.
Rich-click and select ‘Properties’.
Once the properties page pops up, select the ‘Run Configuration’ option.
Click the ‘Run As’ drop-down and select ‘Remote Web Site (FTP, SFTP).
The properties pop-up will reload adding a few more options to the screen. Click the ‘Manage’ button.
A list of your current FTP connections will be displayed. Click the ‘Add’ button to add a new connection.
Enter a name for the connection and click ‘OK’.
Complete the necessary details allowing you to connect to the FTP server.
Click the ‘Test Connection’ button to test your connection. Hopefully you will not see the screen below.
With the connection successfully created, you can do a test upload. Right-click on the file you wish to FTP and select the ‘Upload’ option.
The Actions panel will display the progress and status of the transaction.