Image

Imageremix_sakura wrote in Imagewebdev

Dreamweaver being stupid.

Greetings, all. I just joined the community today, and I thought I'd present a problem of mine.

The company I work for is dependent on Dreamweaver MX. Which is fine with me, because I can use "code view" to do everything by hand as I normally do. The pages are still editable in "design view" if the graphic designer or the boss need to make any additions.

This was all fine and good until one day I proposed that I write one client's page using PHP. It was really simple, just make external header.php and footer.php files and include them so that eighteen pages didn't have to be edited every time there was a link change or layout change (which was the situation beforehand). I convinced them that it was more efficient and professional, and that .php files were still editable in "design view" (which I know isn't the smartest thing to do, but it was still possible). So I write the pages, everything looks fine, but when I test them on the server they're not parsed. The tech support of the host (Earthlink) says that their MIME settings are set such that I would need to use a .php4 extension. Odd, I thought, but doable. So I rename all the files. They still work on the server.

BUT Dreamweaver does not recognize files with a .php4 extension as web files. It thinks they're text-only. Which means they can be opened and edited in Dreamweaver, but in code view only. And since I'm the only one in the company who does hand-coding and I'm leaving in two months to go back to college, essentially the pages would be unable to be edited by anyone else.

I'm wondering if there is some update or extension for Dreamweaver that will recognize a .php4 extension, or if I have to go back to sloppy coding. FYI the system is Mac OS 10.2 and the program is Dreamweaver MX (don't know the version s I am not in the office).

Thanks in advance. =)