Jump to content

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

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...

Link to comment
https://forums.phpfreaks.com/topic/2155-dreamweaver-php/#findComment-7096
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

Link to comment
https://forums.phpfreaks.com/topic/2155-dreamweaver-php/#findComment-7102
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.