Jump to content

Netbeans Question


Recommended Posts

Hey everyone

 

I'm a newb here so please bear with me.  I'm trying to learn some php programming to go along with my database skills, so I bought a book, downloaded a WAMP server(zend free edition) and editor(editra) and netbeans ide.

 

Now i'm trying to run a simple "hello world" program and for the life of me can't get it to work using netbeans.  Its working fine using editra as I'm just saving the file to this folder C:\Program Files (x86)\Zend\Apache2\htdocs and navigating my browser to this http://localhost/helloworld.php.  But with netbeans it just keeps coming up as this "Not found the requested URL /Newphpproject/index.php was not found on this server".

 

Any help would be appreciated

Thank You

Link to comment
https://forums.phpfreaks.com/topic/285937-netbeans-question/
Share on other sites

You need to change project url to http://localhost instead of http://localhost/NewPhpProject/

 

Or save your project files in C:\Program Files (x86)\Zend\Apache2\htdocs\NewPhpProject\.

 

Your should be able to change the project paths/urls when you right click the project and choose project properties.

Link to comment
https://forums.phpfreaks.com/topic/285937-netbeans-question/#findComment-1467714
Share on other sites

That worked fantastic, thank you. 

 

One additional question: now I have a hellworld.php file within this directory  C:\Program Files (x86)\Zend\Apache2\htdocs\NewPhpProject\.  Now when I add a second file to this directory, lets call it helloworld2.php, and run it, it runs the contents of the first helloworld.php file.  Does this sound normal?

Link to comment
https://forums.phpfreaks.com/topic/285937-netbeans-question/#findComment-1467776
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.