Eclipse output to the WAMP WWW server folder

I have an eclipse workspace folder. I want to keep all the various projects that I am working on here. Now I am working on a PHP project and installing WAMP. Is there a way to configure eclipse so that it outputs my project files to the www folder of the server.

I do not want to create my workspace in the www folder of the server, for the following reasons: - I will work on several projects over time, and I want all of them to be in the same workspace - I do not want to pollute the www web page (although this is a development machine). I feel that if I have code in a separate workspace, there is a chance that I will delete it by mistake. I do not want you to decide to clear the www folder and delete my only copy of the code!

Any alternative solutions to my concern are also welcome :)

+3
source share
3 answers

You can save the php code in the current eclipse workspace and then create a virtual host in the httpd.conf file of the apache server with the document root pointing to this directory.

+3
source

You do not need to edit any php.ini files or something so crazy; you just need to change a couple of things in Eclipse.

Step # 1: Log into Eclipse and click “Window” → “Settings” → PHP → PHP Servers

The server should be listed by default; you can edit it or just create a new one (this is what I did) and just set it to default later.

"" "" - , . - , ; , . - www WAMP. php. localhost/ < --- .

localhost/wamp/www, . .

№2:

php , , " " → " " → - PHP ( ). "" "". .php, , . , . , "". Eclipse , , .

, , PHP www (Eclipse ).

,

+5

, , - PHP wamp\www.

:

C:\WAMP\WWW\yourproject\index.php

0
source

Source: https://habr.com/ru/post/1759637/


All Articles