0

I'm trying to create an HTML/javascript project in netbeans by going to new project > php project. However it asks for a local server path, which I don't need and will interfere with running the website. Is there a way around this?

Sajad Bahmani
  • 17,325
  • 27
  • 86
  • 108
UserX
  • 1,228
  • 2
  • 15
  • 28
  • 1
    I think you can just hit `Next` and forget about it. – Mike Nov 01 '11 at 20:51
  • The problem is if I define no local server, i can't hit run to preview my html page in the browser. I'd have to go manually locate the file on my disk and open it in firefox/safari – UserX Nov 01 '11 at 22:14

2 Answers2

0

You don't need to specify the local server path; you can still debug against a remote server.

Phil Lello
  • 8,377
  • 2
  • 25
  • 34
0

NetBeans PHP project type assumes that you are using server side dynamic scripting language PHP and such PHP pages need a web server to run them. Even if you added static pages like HTML pages, still the PHP project will need a local server to serve them to browser hence it asks for the local server publishing path.

NetBeans IDE does not currently have a static HTML project type, and if this type of projects are needed you should add enhancement requests in NetBeans project issue tracker.

SOLUTION:
One way of solving your requirement is to open the project folder through the Favorite panel in NetBeans IDE. This way you can open the HTML and JavaScript pages and also see them in browser by using the View menu option from the context menu of the HTML file node.

Tushar Joshi
  • 2,206
  • 21
  • 20
  • Thanks for the advice, is there also a way to select other browsers for testing other than the default system browser? I know you can go into options and change it, but is there an easier way to add more preview browser options in the toolbar? – UserX Nov 02 '11 at 22:13