Copy link to clipboard
Copied
I am working with PHP documents but both Live View and Design View are grey and unavailable with PHP documants open. I am using MAMP and have set up local info and testing server in the site set up dialog several times myself and with the help of some web search with no difference. Any thoughts on what may be some things to check would be greatly appreciated.
Have you changed your preferences to open PHP pages in Code view?
In the File Types/Editors category of Preferences, if you add .php to the list of file name extensions in "Open in code view", it disables Design view and Live View for that type of file.
Copy link to clipboard
Copied
Check that you have your site definition set up correctly. See http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php_05.html.
Copy link to clipboard
Copied
yes that is actually one of the resources that i had foundand had gone through, a couple of times. it seems pretty basic, could there be some sort of setting elsewhere that may be affecting it?


Copy link to clipboard
Copied
Is Apache running? Did you change the ports in MAMP to use the Apache and MySQL defaults? http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php_03.html#test_mamp.
Copy link to clipboard
Copied
yes the ports are changed to 80 and 3306. if i do a preview in browser it comes up fine, just can't get the design and live view buttins working.

Copy link to clipboard
Copied
Have you changed your preferences to open PHP pages in Code view?
In the File Types/Editors category of Preferences, if you add .php to the list of file name extensions in "Open in code view", it disables Design view and Live View for that type of file.
Copy link to clipboard
Copied
Bingo! I don't remember changing that but i suppose that it is a possibility. I removed ".php" from the list and the problem is solved. Thank you very much for your help.
Copy link to clipboard
Copied
Hoooo Leeeee Moe Leeee...
QUOTE"
Have you changed your preferences to open PHP pages in Code view?
In the File Types/Editors category of Preferences, if you add .php to the list of file name extensions in "Open in code view", it disables Design view and Live View for that type of file.
"
I can not believe I searched for over 30 minutes to find out that adding .php to this field; disables one of the ONLY reasons I purchased CS5.
Just for giggles, why would it be designed like this? "Open in code View" = a prefrence to what screen type you see, not, "I want to disable CS5 to pre CS2 version"...
Well, just my two cents. Now that I know, I will never do that again... So, Next question. Is there a way to make Dreamweaver by default open in code view, without setting the tempting box to do it for you?
Thanks ahead of time. By the way, I am greatful that someone has the answers! and I am glad that person is you sir = Enter the Adobe Expert.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more