Topic: DreamWeaver Include

Hell all
I am using DreamWeaver, and work in PHP.
Everything is going fantastic, but when I want to include a file, my whole page is disordered and I cannot see it as WYSIWUG.
My include code is :

<?php include "menu_province_eng.php" ?>

Can anyone tell me what the problem is?

Vote up Vote down

Re: DreamWeaver Include

And when I upload that disordered file to the server, it is looking good,
But the problem is in DreamWeaver only, in WYSIWUG or design view.

Vote up Vote down

Re: DreamWeaver Include

You'd need to install WAMP in order to get PHP to work on your computer.

http://www.killerphp.com/videos/

Just because my computer is online does not mean that I am.
a&b WebDesign

Vote up Vote down

Re: DreamWeaver Include

Thanks Thelma
I have WAMP server installed on my PC
PHP works on my PC, but when I Edit and php page which has include function,
that gives error.
All functions are working good except the include one

Vote up Vote down

Re: DreamWeaver Include

Dreamweaver has a tendancy to do it's own thing in Design View. You should only use Design View as a guideline and absolutely never use it to design in unless you want major headaches. If your code is showing up fine in all the browsers then there is no need to bother what Dreamweaver's Design View is showing you.

Vote up Vote down

Re: DreamWeaver Include

yes virtual
but after the include function, i am unable to edit any contenet of my page.!!!

Last edited by fazlionline (June 23, 2009 11:05 pm)

Vote up Vote down

Re: DreamWeaver Include

If everything else is showing correctly in several different browsers, then your problem is only with Dreamweaver's Design View. Have your tried editing in Code View?

Vote up Vote down

Re: DreamWeaver Include

yes
this is my code

<?php include "menu_province_eng.php" ?>

is there anything wrong in the ocde?

Vote up Vote down

Re: DreamWeaver Include

yes
this is my code

<?php include "menu_province_eng.php" ?>

is there anything wrong in the ocde?

Vote up Vote down

Re: DreamWeaver Include

Hi, Do this...

PHP Includes >> Don't worry about what DW is showing you >> If you need to test it locally (usually there is no need with simple includes) then download Wamp.

Vote up Vote down

Re: DreamWeaver Include

wow
i fixed it with

<?php @include "menu_province_eng.php" ?>

i have only added @ symbol and it works

Vote up Vote down

Re: DreamWeaver Include

fazlionline wrote:

wow
i fixed it with

<?php @include "menu_province_eng.php" ?>

i have only added @ symbol and it works

That may work because the "@" symbol disables errors... Personally, not the ideal way to deal with the situation.

Have you tried this format instead:

<?php include("menu_province_eng.php"); ?>
Benjamin Falk | Falken Creative : Twitter
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter

Vote up Vote down