Search the Community
Showing results for tags 'phpdisplay'.
-
I am encountering a problem with Dreamweaver and PHP. The attached example is a simplification of the problem I have a php header with the following code: <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> </head> <body> <table><tr><td> This is my header </td></tr></table> </body> </html> I then reference this in a main page using the following code: <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> </head> <body> <p>more text goes here</p> <p><?php include('whit_head.php');?></p> <?php echo('test value');?> </body> </html> I encounter the following problems. The errors are illustrated in the attached document. The title of the whit_header.php file is some how imported leading to the "Untitled Document </head>" occurring above "This is my header". The php is also being displayed which is odd since "Live view" is not enabled. The set up I am using has worked on previous websites but now it is giving this error. I have no idea what is causing this and I will appreciate any help. Thank you.