Why dreamweaver creates PHP pages in html format?

Discussion in 'PHP' started by Paki-Webmaster, Nov 11, 2007.

Thread Status:
Not open for further replies.
  1. #1
    Greetings everybody,i am new here at DP and know about dreamweaver and other good php creating software;)
    i tried dreamweaver but it is creating pages in html format but the extension is PHP:confused: can any one define this and which is the best software to create php pages easily.
    ?
     
    Paki-Webmaster, Nov 11, 2007 IP
  2. Xtrm2Matt

    Xtrm2Matt Active Member

    Messages:
    129
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #2
    HTML is just the way a website is displayed.
    PHP is what you program web applications with.

    For instance:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>PHP Test</title>
    </head>
    
    <body>
    
    <?php echo( "Hello, welcome to my PHP page!" ); ?>
    
    </body>
    </html>
    
    Code (markup):
    Without the PHP extension, the PHP part wouldn't show.

    So, design your site in HTML (/ CSS) and code your web applications in PHP. :)
     
    Xtrm2Matt, Nov 11, 2007 IP
  3. pubdomainshost.com

    pubdomainshost.com Peon

    Messages:
    1,277
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Pages which are created in DW would further require your inputs to make them dynamic. You can use DW to create a structure and framework, and later on, add the code bit to get the desired result / output displayed.

    HTH
    GS
     
    pubdomainshost.com, Nov 11, 2007 IP
  4. sundaybrew

    sundaybrew Numerati

    Messages:
    7,294
    Likes Received:
    1,260
    Best Answers:
    0
    Trophy Points:
    560
    #4
    In dream weaver there is an option to select the kind of page you want to make

    go to File>New>New Document and then select what type of page you want to create

    Hope this helps, and if you need more help , let me know
     
    sundaybrew, Nov 11, 2007 IP
  5. fear

    fear Banned

    Messages:
    3,750
    Likes Received:
    221
    Best Answers:
    0
    Trophy Points:
    205
    #5
    sundaybrew you were fast, i was going to tell that. And good to see a pakistani webmaster in here. Nice to see you here and welcome :D
     
    fear, Nov 11, 2007 IP
  6. sundaybrew

    sundaybrew Numerati

    Messages:
    7,294
    Likes Received:
    1,260
    Best Answers:
    0
    Trophy Points:
    560
    #6
    Thanks !

    Here is a screenshot for t he OP as well, so you can see, A picture is worth a thousand words they say :)

    [​IMG]
     
    sundaybrew, Nov 11, 2007 IP
  7. Paki-Webmaster

    Paki-Webmaster Banned

    Messages:
    286
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #7
    thanks for your interest in helping me,but i cannot see any option like New Document in File>New can you tell me which version you are using?
    i am using dreamweaver 8.
     
    Paki-Webmaster, Nov 12, 2007 IP
  8. fear

    fear Banned

    Messages:
    3,750
    Likes Received:
    221
    Best Answers:
    0
    Trophy Points:
    205
    #8
    Press Ctrl+N.
     
    fear, Nov 12, 2007 IP
  9. Paki-Webmaster

    Paki-Webmaster Banned

    Messages:
    286
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #9
    oh..that is what you were talking about,i was thinking that there is other option of new document,but i finally got it:)
    i was asking about that,when we create new php file and start coding like, if we add image automatically then the code will not be in php, it will be in html:confused:
     
    Paki-Webmaster, Nov 12, 2007 IP
  10. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #10
    nico_swd, Nov 12, 2007 IP
  11. Paki-Webmaster

    Paki-Webmaster Banned

    Messages:
    286
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Paki-Webmaster, Nov 17, 2007 IP
  12. fear

    fear Banned

    Messages:
    3,750
    Likes Received:
    221
    Best Answers:
    0
    Trophy Points:
    205
    #12
    No first html then inside html php is used
    and php tag is <?php ...... ?> not <php?.
     
    fear, Nov 17, 2007 IP
  13. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #13
    Actually it goes either way. It doesn't matter whether the HTML or PHP is first or in what order they're in anywhere on the page. Just make sure you're not printing anything out before the DOCTYPE or browsers will go in quirks mode.
     
    soulscratch, Nov 17, 2007 IP
Thread Status:
Not open for further replies.