Question

I have been using Notepad++ all this while for php and I wanted to switch to Zend Studio. When I am creating a new Project in Zend Studio and then adding a new Hello World php file with a simple echo statement. On executing the program I get this error :

The requested URL /TestProject/hellow.php was not found on this server.

How do I get it to execute it from the C:/wamp/www/ folder ?

Was it helpful?

Solution

It is good that you are switching to me Zend Studio, you will enjoy it.

Normally there are no need to execute a php file directly from your Zend Studio, as you can easily access the file in your browser. But you can also easily configure zend studio to do it. Below are the steps:

1) Create a new project (Local project). You will see the following screen.

2) Enter project name and in location, select Browse. In Browse window, select your www folder and then click finish. Zend will automatially create a folder named as the project name.

3) Click Next and you will see the following screen.

enter image description here

Review your settings as in the picture, and then click finish.

Zend will also create an index.php file which is empty. Add some test code to it and then run it, you will see the output in the builtin zend studio browser.

Hope this will help you.

Thank you

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top