Jump to content

Netbeans Question


Go to solution Solved by Ch0cu3r,

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

  • Solution

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.

Edited by Ch0cu3r
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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.