This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > February 2006 > How to stop DW from trying to interpret php code?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to stop DW from trying to interpret php code?
|
|
| sgxyay 2006-02-24, 10:15 am |
| Hi. I've got a site that uses a tiny bit of PHP code just to load html from
other files into the page. It's real simple stuff. Before, Dreamweaver just
wouldn't display those sections of the page with the PHP load, but all of a
sudden for some reason NONE of my page will display in dreamweaver, making the
only way to edit the code view. I don't know why it started this, but it seems
it is trying to execute the PHP code or something and failing. Help? Thanks.
| |
| gordonwd 2006-02-24, 10:15 am |
| What is on the rest of your page? Do you have some basic HTML content with the
PHP script embedded in the head and/or body? My pages use such a mix, and in
DW8 Design View I see my regular HTML visual stuff, and the places where the
PHP code is located are indicated by the script icon with the letters "PHP" on
it.
A couple of times I have made mistakes such as leaving off the terminating
"?>" for the PHP block, and that has confused DW since it assumes that the rest
of my code is part of the script.
| |
| sgxyay 2006-02-24, 10:15 am |
| It used to and should look the way you described with the little "php" blocks
in the design view.
All my PHP code entails is a few things like <? include("banner.html"); ?>
which brings in my html code for my banner, sidebar menu, and footer from
seperate html files so if I need to change one of them, I can do it in a
seperate file and it will update throughout the rest of the site.
Currently, it is actually displaying the banner in design view and then
nothing else of the page. It seems it is actually interpreting a little of the
php and then getting hung up.
The code is still correct because it is what is on my site
(www.supergreenx.com) and it operates correctly on the server.
I'm in Dreamweaver MX 2004
Here is a bit of my code
<body text="#000033" link="#004A9D"
onLoad="MM_preloadImages('buttons_r2_c2_f2.gif','buttons_r4_c2_f2.gif','buttons_
r6_c2_f2.gif','buttons_r8_c2_f2.gif','buttons_r10_c2_f2.gif','buttons_r12_c2_f2.
gif','images/buttons_r2_c2_f2.gif','images/buttons_r4_c2_f2.gif','images/buttons
_r6_c2_f2.gif','images/buttons_r8_c2_f2.gif','images/buttons_r10_c2_f2.gif','ima
ges/buttons_r12_c2_f2.gif')">
<? include("banner.html"); ?>
<table width="800" border="0">
<tr> </tr>
</table>
<table width="677" height="1123" border="0">
<tr>
<td width="18" height="52" rowspan="2" valign="top">
<? include ("sidebar.html"); ?>
</td>
<td height="52" colspan="2" valign="top"><img
src="images/titlenewshome.gif" width="300" height="50">
</td>
</tr>
<tr>
| |
| Murray *TMM* 2006-02-24, 10:15 am |
| I'm guessing that you have <html>, <head>, or <body> tags in the files being
included, and DW is at a loss for what to do with them.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"sgxyay" <webforumsuser@macromedia.com> wrote in message
news:dtlhlm$2lo$1@forums.macromedia.com...
> It used to and should look the way you described with the little "php"
> blocks
> in the design view.
>
> All my PHP code entails is a few things like <? include("banner.html"); ?>
> which brings in my html code for my banner, sidebar menu, and footer from
> seperate html files so if I need to change one of them, I can do it in a
> seperate file and it will update throughout the rest of the site.
>
> Currently, it is actually displaying the banner in design view and then
> nothing else of the page. It seems it is actually interpreting a little
> of the
> PHP and then getting hung up.
>
> The code is still correct because it is what is on my site
> (www.supergreenx.com) and it operates correctly on the server.
>
> I'm in Dreamweaver MX 2004
>
> Here is a bit of my code
>
>
>
> <body text="#000033" link="#004A9D"
> onLoad="MM_preloadImages('buttons_r2_c2_f2.gif','buttons_r4_c2_f2.gif','buttons_
> r6_c2_f2.gif','buttons_r8_c2_f2.gif','buttons_r10_c2_f2.gif','buttons_r12_c2_f2.
> gif','images/buttons_r2_c2_f2.gif','images/buttons_r4_c2_f2.gif','images/buttons
> _r6_c2_f2.gif','images/buttons_r8_c2_f2.gif','images/buttons_r10_c2_f2.gif','ima
> ges/buttons_r12_c2_f2.gif')">
> <? include("banner.html"); ?>
> <table width="800" border="0">
> <tr> </tr>
> </table>
> <table width="677" height="1123" border="0">
> <tr>
> <td width="18" height="52" rowspan="2" valign="top">
> <? include ("sidebar.html"); ?>
> </td>
> <td height="52" colspan="2" valign="top"><img
> src="images/titlenewshome.gif" width="300" height="50">
> </td>
> </tr>
> <tr>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|