PHP / eclipse Installation

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
bangla123
Forum Newbie
Posts: 9
Joined: Wed Jan 26, 2011 10:36 pm

PHP / eclipse Installation

Post by bangla123 »

Hi,

I have eclipse installed. Can someone pls help me what else do i need to play with the php code?

Please reply.

Thanks.

Safi
bangla123
Forum Newbie
Posts: 9
Joined: Wed Jan 26, 2011 10:36 pm

Re: PHP / eclipse Installation

Post by bangla123 »

Hi,

1. When i type http://localhost, i get the XAMPP page.
2. I started eclipse.exe. Created a new php project(workspace- C:\Program Files). also create a simple hello world php file.
3. eclipse and xampp both saved in c/program files.
4. opened up C:\Program Files\xampp\apache\conf\httpd.conf. In the httpd.conf file, i put - DocumentRoot "C:/Program Files".
5. Then i am not sure what to put in browser to see my page.
6. in httpd.conf, i also put alias /safi/ "C:\Program Files", then when i run it i get error 204 message.

I am new to this. I am really lost. I am not sure of the relation ship between eclipse, php, php.ini, xampp, documentroot. someone pls help me how i can view my page in browser. thanks.

Safi
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: PHP / eclipse Installation

Post by Doug G »

On a linux computer here's more or less what I do to get eclipse working with PHP and debugging on my web server. From memory, I don't think I forgot any major steps:

Install the eclipse pdt all-in-one download from zend
Download the proper zend debugger binary from zend and unpack to a directory
Download jdbc drivers from mysql and unpack to a directory (for use later)
Create a workspace directory for eclipse
Create a virtual directory and alias in apache for the eclipse workspace directory
Edit php.ini and add the necessary debug settings for the zend debugger. Copy dummy.php to the workspace directory
Edit configuration settings in eclipse for php debugger and php servers. Test the debugger
Enjoy

I also add subversive plugin to eclipse.
bangla123
Forum Newbie
Posts: 9
Joined: Wed Jan 26, 2011 10:36 pm

Re: PHP / eclipse Installation

Post by bangla123 »

Thanks. But i am using windows.

You provided me a new steps to follow. I will check later. Since I already spent lot of time installing other programs, can you pls tell me why i am getting local host page but i am not getting localhost/mypage.php based on my previous email? Should i changed any settings anywhere?

Thanks.

Safi
Post Reply