PHP shown in Dreamweaver, but only Shields in Contribute...

Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default PHP shown in Dreamweaver, but only Shields in Contribute...

    I want to include some code snippets with PHP and all seems to work fine with
    Dreamweaver,
    but Contribute shows only a PHP-Shield. Can somebody help me please?

    this ist my simple code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Titel</title>
    </head>

    <body>
    <?php include("test.htm"); ?>
    </body>
    </html>

    test.htm:
    <div style="border:2px solid #900">
    <p>PLEASE SHOW MY, CONTRIBUTE!!!</p>
    </div>

    kewlDevil Guest

  2. Similar Questions and Discussions

    1. Contribute and Dreamweaver
      :confused; I made a web site in Dreamweaver for a client of mine who needed to edit it in Dreamweaver. My client goes to update the pages and...
    2. Can Contribute / Dreamweaver do what I need it to do?
      I am in search of a Content / Document Management System that my co-workers and I can use in our Web Development department. We do all of our...
    3. Dreamweaver 8 and Contribute CS3
      Is Contribute CS3 compatible with Dreamweaver 8?
    4. Contribute & Dreamweaver
      Hello - I run a small business and for years have edited my site in Dreamweaver. Currently, I have version 8 and have been using it for 10 months...
    5. NOT SHOWN. The page is not shown until refresh it !
      Hello, I have an site that is running asp,sql server and iss. The problem is, when I click on the any link, on the IE status bar it says Done...
  3. #2

    Default Re: PHP shown in Dreamweaver, but only Shields in Contribute ...

    > <body>
    > <?php include("test.htm"); ?>
    > </body>
    > </html>
    Contribute doesn't render server side scripting. All you will see of the
    above code is the yellow shield icon to represent the php statement.
    It won't display, and it's not editable in contribute by normal means.

    Alan Guest

  4. #3

    Default Re: PHP shown in Dreamweaver, but only Shields inContribute ...

    Huuuh? But I've read about it. And Dreamweaver renders this page correctly. It
    doesn't show the php icon.
    And a SSI-Include works within Contribute, too. Why not a PHP-Include. I was
    sure to heard about it

    kewlDevil Guest

  5. #4

    Default Re: PHP shown in Dreamweaver, but only Shields in Contribute ...

    Contribute does not render server scripting.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "kewlDevil" <webforumsuser@macromedia.com> wrote in message
    news:d7g11r$jm0$1@forums.macromedia.com...
    > Huuuh? But I've read about it. And Dreamweaver renders this page
    > correctly. It
    > doesn't show the php icon.
    > And a SSI-Include works within Contribute, too. Why not a PHP-Include. I
    > was
    > sure to heard about it
    >

    Murray *TMM* Guest

  6. #5

    Default Re: PHP shown in Dreamweaver, but only Shields inContribute ...

    really? (Please excuse my pighead)

    And why does a SSI work in Contribute?
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Titel</title>
    </head>

    <body>
    <!--#include virtual="test.htm"-->
    </body>
    </html>

    Or doesn't SSI belong to server scripting?

    kewlDevil Guest

  7. #6

    Default Re: PHP shown in Dreamweaver, but only Shields in Contribute ...

    > Or doesn't SSI belong to server scripting?

    It doesn't. It's not scripting - it's a server directive (I think that's
    what you would call it).

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "kewlDevil" <webforumsuser@macromedia.com> wrote in message
    news:d7h76k$7qk$1@forums.macromedia.com...
    > really? (Please excuse my pighead)
    >
    > And why does a SSI work in Contribute?
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    > "http://www.w3.org/TR/html4/loose.dtd">
    > <html>
    > <head>
    > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    > <title>Titel</title>
    > </head>
    >
    > <body>
    > <!--#include virtual="test.htm"-->
    > </body>
    > </html>
    >
    > Or doesn't SSI belong to server scripting?
    >

    Murray *TMM* Guest

  8. #7

    Default Re: PHP shown in Dreamweaver, but only Shields inContribute ...

    Murray wrote:
    >>It doesn't. It's not scripting - it's a server directive (I think that's
    what you would call it).

    When you use ASP (or VBScript) its a server directive and gets parsed before
    the ASP code, but with PHP the include() function is part of the language,
    which is why PHP is able to use variable includes.

    if(condition) {
    include(url)
    } else {
    include(url)
    }

    I'm guessing this is why Contribute doesn't render PHP includes in edit mode.
    I do know that ASP includes will render though. That is, if the ASP includes
    only contain static text and HTML. It won't display any dynamic text.



    mzanime.com Guest

  9. #8

    Default Re: PHP shown in Dreamweaver, but only Shields in Contribute ...

    How does an ASP include look?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "mzanime.com" <webforumsuser@macromedia.com> wrote in message
    news:d7ilbl$ep8$1@forums.macromedia.com...
    > Murray wrote:
    > >>It doesn't. It's not scripting - it's a server directive (I think that's
    > what you would call it).
    >
    > When you use ASP (or VBScript) its a server directive and gets parsed
    > before
    > the ASP code, but with PHP the include() function is part of the language,
    > which is why PHP is able to use variable includes.
    >
    > if(condition) {
    > include(url)
    > } else {
    > include(url)
    > }
    >
    > I'm guessing this is why Contribute doesn't render PHP includes in edit
    > mode.
    > I do know that ASP includes will render though. That is, if the ASP
    > includes
    > only contain static text and HTML. It won't display any dynamic text.
    >
    >
    >

    Murray *TMM* Guest

  10. #9

    Default Re: PHP shown in Dreamweaver, but only Shields inContribute ...

    Same as it would inside Dreamweaver. If you have a table inside of your
    include, it will render a table in edit view.

    The problem may be that he's not calling to his include correctly. Look at
    this.
    [url]http://www.w3schools.com/asp/asp_incfiles.asp[/url]

    it says there that "Use the virtual keyword to indicate a path beginning with
    a virtual directory." So as I recall, when using the virtual keyword your path
    to the include should always begin with a slash.

    Otherwise he should use <!--#include file="test.htm"-->

    mzanime.com Guest

  11. #10

    Default Re: PHP shown in Dreamweaver, but only Shields in Contribute ...

    So, looking at a page of markup, you cannot tell whether I am using an ASP
    include or an HTML include without knowing the filename. That was my
    point - they are the same markup, no?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "mzanime.com" <webforumsuser@macromedia.com> wrote in message
    news:d7km5c$ah1$1@forums.macromedia.com...
    > Same as it would inside Dreamweaver. If you have a table inside of your
    > include, it will render a table in edit view.
    >
    > The problem may be that he's not calling to his include correctly. Look at
    > this.
    > [url]http://www.w3schools.com/asp/asp_incfiles.asp[/url]
    >
    > it says there that "Use the virtual keyword to indicate a path beginning
    > with
    > a virtual directory." So as I recall, when using the virtual keyword your
    > path
    > to the include should always begin with a slash.
    >
    > Otherwise he should use <!--#include file="test.htm"-->
    >

    Murray *TMM* Guest

  12. #11

    Default Re: PHP shown in Dreamweaver, but only Shields inContribute ...

    I assume you mean "markup" as in, "wysiwyg rendering"... if thats the case, then yes.

    Except Contribute won't display PHP includes. But Dreamweaver will.
    mzanime.com Guest

  13. #12

    Default Re: PHP shown in Dreamweaver, but only Shields in Contribute ...

    >I assume you mean "markup" as in, "wysiwyg rendering"... if thats the case,
    >then yes.
    No, I mean markup as in HTML. The two have the identical syntax - HTML
    imclud and ASP include.
    > Except Contribute won't display PHP includes. But Dreamweaver will.
    Sure. There's no argument about that.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "mzanime.com" <webforumsuser@macromedia.com> wrote in message
    news:d7lhp4$gid$1@forums.macromedia.com...
    >I assume you mean "markup" as in, "wysiwyg rendering"... if thats the case,
    >then yes.
    >
    > Except Contribute won't display PHP includes. But Dreamweaver will.

    Murray *TMM* Guest

  14. #13

    Default Re: PHP shown in Dreamweaver, but only Shields inContribute ...

    Oh. Well yeah, your correct then.
    mzanime.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139