ctriceman Posted February 4, 2014 Share Posted February 4, 2014 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 Quote Link to comment https://forums.phpfreaks.com/topic/285937-netbeans-question/ Share on other sites More sharing options...
Solution Ch0cu3r Posted February 4, 2014 Solution Share Posted February 4, 2014 (edited) 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 February 4, 2014 by Ch0cu3r Quote Link to comment https://forums.phpfreaks.com/topic/285937-netbeans-question/#findComment-1467714 Share on other sites More sharing options...
ctriceman Posted February 5, 2014 Author Share Posted February 5, 2014 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? Quote Link to comment https://forums.phpfreaks.com/topic/285937-netbeans-question/#findComment-1467776 Share on other sites More sharing options...
Ch0cu3r Posted February 5, 2014 Share Posted February 5, 2014 Netbeans opens each file into separate tabs. Select the file you want to run in the tab list and press Shift + F6 to run that file. Quote Link to comment https://forums.phpfreaks.com/topic/285937-netbeans-question/#findComment-1467813 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.