HTML tags in eclipse PHP project [message #254280] |
Fri, 18 April 2008 14:51  |
Eclipse User |
|
|
|
I am using PHP eclipse to produce a web page. When I run or RunDebug my
small program the PHP part is interpreted but the HTML tags appear as
written in the console display. When I run the page using Firefox browser
the output is all good. for example:
<HTML>
<HEAD>
<TITLE> Test</Title>
</HEAD>
<?php
echo " PHP comes out."
?>
<?HTML>
I get the output:
<HTML>
<HEAD>
<TITLE> Test</Title>
</HEAD>
<BODY>
PHP comes out. </BODY>
</HTML>
Only the PHP code is interpreted correctly.
Is the output supposed to appear in console?
Thanks.
|
|
|
Re: HTML tags in eclipse PHP project [message #254334 is a reply to message #254280] |
Sun, 20 April 2008 11:38  |
Eclipse User |
|
|
|
richardchemistry wrote:
> I am using PHP eclipse to produce a web page. When I run or RunDebug my
> small program the PHP part is interpreted but the HTML tags appear as
> written in the console display. When I run the page using Firefox
> browser the output is all good. for example:
> <HTML> <HEAD> <TITLE> Test</Title> </HEAD>
> <?php echo " PHP comes out."
> ?>
> <?HTML> I get the output:
> <HTML> <HEAD> <TITLE> Test</Title> </HEAD>
> <BODY>
> PHP comes out. </BODY>
> </HTML>
> Only the PHP code is interpreted correctly. Is the output supposed to
> appear in console? Thanks.
>
I'm probably the wrong person to answer this, since I use PDT and have
never tried PHPEclipse, but since nobody else is jumping aboard ...
When you run the project in Eclipse, are you running it through a web
server or just through a debugger/interpreter? I'm not familiar with
what all PHPEclipse installs in the way of a debugger, but unless the
debugger contains an HTTP server, I wouldn't be surprised to see the
HTML markup ignored.
Also, when you run it in Eclipse, are you seeing the code in a browser
window or a console window? On their web site, they show a screenshot
of an External Preview window displaying browser output. If it's
running through a server, I think you'll see the URL (either
http://localhost/whatever or http://your.server.com/whatever) somewhere
in the window.
HTH,
Paul
|
|
|
Powered by
FUDForum. Page generated in 0.08061 seconds