This guide will show you how to setup a PHP project in NetBeans covering a complicated situation, such as files behind public root. PHP support is new in NetBeans so hopefully this guide will help some new comers to NetBeans that want to use it for PHP websites.
What some may experience when first using an IDE such as NetBeans or Dreamweaver is the native tendency for these programs to guess what is best for you when it comes to your project paths and live site paths. One may be fustrated that when running their project off the IDE it will point them to someting like http://www.domain.com/www.domain.com/testfile.html or upload their files to a similar wrong location in FTP. Especially when trying to mirror the directory structures and names locally and on the server. With the proper setup this can be avoided.