pages from template now get syntax error
This may not actually be a PHP question, but I know the use of PHP will muddy getting help in the general forum. I am at my wits end on this.
In my sites, in which I always use a Template, for years, I have successfully used the following code:
<?php
include ('../inc_debmenu.html');
?>
However, this now fails me. Not because of the code itself, but due to a path-writing issue.
I should note that I recently moved to a new Mac, and the new Mac's hard drive has a new name — 2 words now, rather than one. I imported the site definitions though and I have no problem updating existing pages or sites that don't use includes, so I don't believe that's an issue. Unless the 2-word HD name is an issue in PHP.
The problem is that in all of my sites that use this include, when I create a new page from my Template, I get an error and the pages won't render when uploaded. Before saving the newly created page, my paths are /// as you'd expect. But even after saving that page to the root of my site, I have the same paths. After the save it reads:
<?php
include ('file:///Deb's Traveller/Users/deb/Documents/websites/MAMPFILES/htdocs/DebSite2010/inc_debmenu.html');
?>
I should add that I use MAMP and have it running, but the issue is the same with it running or not. (You may see that I changed the default location for backup reasons. I have always done that.)
I use: DTD XHTML 1.0 Transitional//EN
What I have tried:
- Under Site Setup->Site, I reselected my site's folder.
- Under Site Setup->Servers Advanced, I have both my testing and remote set up and for both, I have tried both no server testing model and the PHP option.
- Under Site Setup->Templates->Advanced I tried having the Don't rewrite relative document paths option checked and not checked. (At this point I don't recall what is normal to have. I think I used to not have that checked.)
Anything else I should be telling you?
I sure hope someone here knows what I am doing wrong and can tell me, or can figure this out. I've lost far too many hours seeking the solution on my own. In case it helps to see the site, it's <http://www.Shadovitz.com>. But all pages were added on my old Mac, before the problem.
Hoping...
Deb Shadovitz