Ask a Question related to Macromedia Contribute General Discussion, Design and Development.
-
kewlDevil #1
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
-
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... -
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... -
Dreamweaver 8 and Contribute CS3
Is Contribute CS3 compatible with Dreamweaver 8? -
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... -
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... -
Alan #2
Re: PHP shown in Dreamweaver, but only Shields in Contribute ...
Contribute doesn't render server side scripting. All you will see of the> <body>
> <?php include("test.htm"); ?>
> </body>
> </html>
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
-
kewlDevil #3
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
-
Murray *TMM* #4
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
-
kewlDevil #5
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
-
Murray *TMM* #6
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
-
mzanime.com #7
Re: PHP shown in Dreamweaver, but only Shields inContribute ...
Murray wrote:
what you would call it).>>It doesn't. It's not scripting - it's a server directive (I think that's
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
-
Murray *TMM* #8
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:> what you would call it).> >>It doesn't. It's not scripting - it's a server directive (I think that's
>
> 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
-
mzanime.com #9
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
-
Murray *TMM* #10
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
-
mzanime.com #11
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
-
Murray *TMM* #12
Re: PHP shown in Dreamweaver, but only Shields in Contribute ...
>I assume you mean "markup" as in, "wysiwyg rendering"... if thats the case,
No, I mean markup as in HTML. The two have the identical syntax - HTML>then yes.
imclud and ASP include.
Sure. There's no argument about that.> Except Contribute won't display PHP includes. But Dreamweaver will.
--
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
-
mzanime.com #13
Re: PHP shown in Dreamweaver, but only Shields inContribute ...
Oh. Well yeah, your correct then.
mzanime.com Guest



Reply With Quote

