Copy link to clipboard
Copied
It appears that whenever I insert PHP code on a page with CS4, design view only displays the PHP symbol on the screen and nothing below it. Everything worked fine in DW8. The only way now to view the page is to upload it and browse to it. Live view requires a testing server which I do not want to implement. Any suggestions?
Copy link to clipboard
Copied
It appears that whenever I insert PHP code on a page with CS4, design view only displays the PHP symbol on the screen and nothing below it. Everything worked fine in DW8.
Without knowing what sort of code you're inserting, I can only guess what the problem is. But the fact that it worked fine in DW8 suggests that you're using include files. An include file should contain only snippets of code. It should not contain a DOCTYPE declaration and duplicate <head> and <body> tags. When the original file and its includes are put together, they should make up a single page with one DOCTYPE declaration, one pair of <html> tags, one <head> and one <body>.
DW8 still displayed the content of include files even if they broke this rule. CS4 is stricter. If the code is invalid, it's not displayed.
Copy link to clipboard
Copied
David,
I appreciate very much your reply. The page in question does include an "include" statement but none of the offending statements that you suggest. I worked yesterday for several hours on a web site, at the beginning, I had this problem, later during the day, just for kicks, I displayed the page in design view and it worked like DW8, displaying everything. Guess what? I did make changes to the "include" modules code and, in fact, fixed a typo in one of the functions. So it appears that, besides those things you've listed, any errors in an included module causes this to happen. Thanks again, I've been scratching my head all night try to figure out why it all of a sudden started to display properly.
Regards, Eugene Wells
Date: Sun, 2 Aug 2009 11:53:01 -0600
From: forums@adobe.com
To: scprez75@hotmail.com
Subject: CS4 does not display form in Design view if PHP code exists.
It appears that whenever I insert PHP code on a page with CS4, design view only displays the PHP symbol on the screen and nothing below it. Everything worked fine in DW8.
Without knowing what sort of code you're inserting, I can only guess what the problem is. But the fact that it worked fine in DW8 suggests that you're using include files. An include file should contain only snippets of code. It should not contain a DOCTYPE declaration and duplicate <head> and <body> tags. When the original file and its includes are put together, they should make up a single page with one DOCTYPE declaration, one pair of <html> tags, one <head> and one <body>.
DW8 still displayed the content of include files even if they broke this rule. CS4 is stricter. If the code is invalid, it's not displayed.
>
Copy link to clipboard
Copied
Hi,
I am having a similar problem, we just built a new site, and had a programmer build a php / mysql program to insert table data into the page.
All displays correctly in live view, and online, just not in design view, which is imperative for the office personal to be able to edit the pages.
any suggestions..
Here is the page: http://209.188.91.107/tour1/
Find more inspiration, events, and resources on the new Adobe Community
Explore Now