Jump to content

Archived

This topic is now archived and is closed to further replies.

john1234

dreamweaver php

Recommended Posts

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

 

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.