Follow-up to "Dreamweaver being stupid"
For anyone that cares, I solved the problem I had with .php4 files not reading in design view in Dreamweaver. It wasn't necessarily the file extension; yesterday I noticed that another page with that extension showed fine. Dreamweaver didn't think any of the pages were web documents because there was no <html> tag, that tag being in the external header.php4. So I took the doctype and html tags out of header.php4, and placed them in each content page like so.
<!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">
<?php
$title = 'Page title';
include ('header.php4');
?>
<p class="heading">Page Title</p>
<?php
include ('footer.php4');
?>
Just thought I'd share that, in case anyone ever encounters a similar problem. And thanks to everyone who commented previously.
<!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">
<?php
$title = 'Page title';
include ('header.php4');
?>
<p class="heading">Page Title</p>
<?php
include ('footer.php4');
?>
Just thought I'd share that, in case anyone ever encounters a similar problem. And thanks to everyone who commented previously.
