# PHP tags imbedded in an HTML file

**URL:** <https://forum.kirupa.com/t/php-tags-imbedded-in-an-html-file/258205>\
**Category:** programming\
**Created:** [April 22, 2008, 2:08am UTC](https://forum.kirupa.com/t/php-tags-imbedded-in-an-html-file/258205 "2008-04-22T02:08:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mockingbird](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@mockingbird](https://forum.kirupa.com/u/mockingbird)\
**Post date:** [April 22, 2008, 2:08am UTC](https://forum.kirupa.com/t/php-tags-imbedded-in-an-html-file/258205/1 "2008-04-22T02:08:13Z")

</div>

Hi,

I’ve just set up a brand new Ubuntu server with PHP5, MySQL and APACHE2. When I access the HTML “hello world” file with PHP tags listed below, the text in within the PHP tags is not displayed.

Is there an APACHE option or something that needs to be configured? Is there some service that needs to be running for PHP to work?

Thanks,

Joe

here’s the code:

\<html\>  
\<head\>  
\</head\>  
\<body\>

This is the first line . . .  
\<br /\>  
\<br /\>

\<?php  
// print another line  
echo ‘. . . and this is the second line’;  
?\>

\</body\>  
\</html\>
