Make sure that you only have the php code in the createAlt.php. Remove any other code like:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
It is also better to use long php tags just in case your server doesn't support short tags...
use:
Code:
<?php // code goes here ?>
instead of:
Code:
<? // code goes here ?>
For more information on the error your getting check out
www.php.net