I have a new site that has about 20 pages, 14 of which are linked to a template in GoLive, and 6 of which are not. The 14 pages all have, in their source code, several lines of php stuff before the template (indeed, before anything - this is session_start type stuff). Everything works fine; the site is published and all is ok. BUT one lone page doesn't stay linked to the template. I have recreated it several times but it never works. When I delete a certain part of the php stuff, it works fine, so evidently the problem lies there. But I can't see anything wrong with: - the php itself (it works on the web) - the length of the php section (longer ones on other files don't affect their being linked to the template page) And GoLive doesn't understand php anyway, why would ANYthing between the <?php ?> tags affect the relationship with the template page? Even if this is some bug, I can't understand its behavior. If you have any idea, thanks.
Huh! I have pinpointed this line as the offending one: $invalidchars = array("\"", "\\", "\'", "<", ">"); Code (markup): When I delete this line, the page is once again linked to its parent template in GoLive. I assume the problem is the > character, but why? It isn't preceded by a question mark like a php close tag. I guess I should've asked this in the PHP forum, but I didn't realize it WAS a php problem
Now I've pinpointed it to the "\\" part. I don't know what the problem is but GoLive doesn't like it. I don't know why it even noticed it. But I took it out and updating the template now updates this child page fine.