cancel
Showing results for 
Search instead for 
Did you mean: 

php through eclipse

Former Member
0 Kudos
51

hi all

i'm trying to run a php program in eclipse

i'm getting output on console,

but when i try running it with browser option then it gives "this page can not be displyed"

Can anyone help me out?

thanks

Abhinav, With Regards

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi all

I'm using scriptbox which supports PHP development comes with XAMPP, Apache Server and many other plug-in

well, i think there is some problem of path setting

any idea?

abhinav, with regards

andreas_klein
Discoverer
0 Kudos

Try to start your Apache manually (There should be a exe file called xampp-control somewere in your installation folder) and copy your php test file in the DocumentRoot of your Apache-Webserver (httpd.conf).

Nigel_James
Active Contributor
0 Kudos

is it a command line type script?

or is it a web page?

Are you using PHPEclipse or the Zend PHPIDE? (PDT?)

Does it run in the browser as under localhost (ie do you have a LAMP set up installed outside of eclipse?)

These answers will help.

Nigel

Former Member
0 Kudos

hi

1. i have written only this much in the php file

<html>

<body>

<?php

echo "hello";

?>

</body>

</html>

2. i am using phpeclipse

3. its not running under localhost

abhinav, with regards

andreas_klein
Discoverer
0 Kudos

Are you shure that your webserver is running and that your PHP files are in your specified DocumentRoot?

(check ie "..../apache/conf/httpd.conf") ?

Nigel_James
Active Contributor
0 Kudos

Great start and I see what your problem is but you need to set up a webserver. There is no internal server to eclipse. You will need apache or lighttp installed on your system.

Have you installed the Scripting in a Box setup?

andreas_klein
Discoverer
0 Kudos

If the missing webserver is the reason I would recommend XAMPP (http://www.apachefriends.org/) for the first start.

Download the files and extract them anywhere you want and set the paths to the XAMPP start and stop scripts in “Window -> Preferences -> PHPeclipse Web Development -> PHP External Tools -> XAMPP”. (If you had installed XAMPP to the recommended location the paths should be correct already).