Skip to main content



      Home
Home » Newcomers » Newcomers » HTML tags in eclipse PHP project
HTML tags in eclipse PHP project [message #254280] Fri, 18 April 2008 14:51 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:unresolved swt.widgets.Composite
Next Topic:Move J2ee interfaces to other package with xdoclet
Goto Forum:
  


Current Time: Mon May 12 12:31:37 EDT 2025

Powered by FUDForum. Page generated in 0.08498 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top