error parsing files with included php tags

Topics: Developer Forum, User Forum
Dec 13, 2010 at 7:26 PM

Hallo,

If i try to parse a html file with php tags for example this one:

<html>
<body>
<?
if ("<h1><h2></h2></h1>") {

}

?>
</body>
</html>

The parser recognize the tags in the string as html tags. With JavaScript it works! the same example works great.
<html>
<body>
<script>
if ("<h1><h2></h2></h1>") {
	
}

</script>
</body>
</html>

What I make wrong or are PHP tags not supported? I only want that they where skipped.