Can I embed PHP in WML code on NMIT4.1? How?

Can I then simulate my code on any SDK? How?

I did attempt this very basic example, but got an error -
Error: DTD: XML declaration may only begin entities.

// send wml headers
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";

<card id="card1" title="Example 1">
// format and output date
$the_date = date("M d Y");
print $the_date;
print "<br/>Welcome to a PHP-enabled site!";

Could someone PLEASE e-mail me a basic working WML deck with PHP?