0

php in html won't execute?

I am trying to do something very simple - I have an html page with embedded php, but the php won't execute.

<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Test</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>
Here we go!
<?php

echo("this is a test");
phpinfo();
?>
</body>
</html>

Does yahoo not allow this? I knpw that a php files alone work ok (although I wish Yahoo would move to php5).

3 Replies

Recent Posts

in PHP Development