Executing PHP

my server is not executing the PHP code. What are some specific things I can check to remedy this???

(The browser will show only HTML and the view source also displays the PHP code.)

Thank you.

is it a php server? lol

did you use <?php some servers don’t allow short tags <?

<?php phpinfo(); ?>

is the extenion .php

Mittineague is on the right track… are there any changes to your server config / .htaccess

maybe in htaccess you have it set to read php files at html ?

Well, its not short tags.

New server? And config is set to parse the file’s extension?
No other new changes, like trying friendly URLs or anything?

I don’t think that is the issue, I have used the code before with apache which I am using now. I am not sure why the browser will not show the php???

here is the code:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en” lang=“en”>
<title>Today’s Date</title>
<meta http-equiv=“content-type”
content=“text/html; charset=utf-8”/>
<p>Today’s date (according to this web server) is
echo date(‘l, F dS Y.’);