john1234 Posted February 5, 2005 Share Posted February 5, 2005 hi i was wondering anyone could give me any suggestion on any source of information on the successful placing of php code into dreamweaver generated html Quote Link to comment Share on other sites More sharing options...
obsidian Posted February 6, 2005 Share Posted February 6, 2005 hi i was wondering anyone could give me any suggestion on any source of information on the successful placing of php code into dreamweaver generated html 201765[/snapback] can you be a little more specific? i use dreamweaver mx 2004 at work, and i've never run into a problem... keep in mind that php is server side, so it will all be parsed before any of the html is even seen by the browser... with that in mind, it doesn't really matter technically where your php is placed, however, for readability, you may want to set some guidelines for yourself... Quote Link to comment Share on other sites More sharing options...
john1234 Posted February 7, 2005 Author Share Posted February 7, 2005 sorry i will clarify i wanted to know how to embed php in the dreamweaver mx 2004 generated code. This is because this code differs markedly from the html code which is explained in books i would appreciate any help in this matter Quote Link to comment Share on other sites More sharing options...
cx409 Posted February 8, 2005 Share Posted February 8, 2005 i think you mean how to get to the code: Just above the main design screen, click "Code". To start a PHP code block, type this: [!--PHP-Head--][div class=\'phptop\']PHP[/div][div class=\'phpmain\'][!--PHP-EHead--][span style=\"color:#0000BB\"]<?php [/span][span style=\"color:#FF8000\"]//and to end, type this: [/span][span style=\"color:#0000BB\"]?>[/span] [/span][!--PHP-Foot--][/div][!--PHP-EFoot--] if you're talking about the colouring....hope this helps: In Dreamweaver (inside a PHP code block): Predefined functions are blue Comments are orange Text in Quotes & Numbers are red Statements (if...else...for) & Booleans are green Variable Names are black Operators (+, =, -) are blue Globals(?) and Superglobals are cyan/light blue - sry cant make the colour... I think that's it...please correct me if im wrong, and if this isn't what you're looking for...sry. Hope it helps. cx409 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.