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?

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.

Re: DreamWeaver Include

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

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

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

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.

Re: DreamWeaver Include

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

Last edited by fazlionline (2009-06-23 23:05:12)

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?

Re: DreamWeaver Include

yes
this is my code

<?php include "menu_province_eng.php" ?>

is there anything wrong in the ocde?

Re: DreamWeaver Include

yes
this is my code

<?php include "menu_province_eng.php" ?>

is there anything wrong in the ocde?

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.

Re: DreamWeaver Include

wow
i fixed it with

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

i have only added @ symbol and it works

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"); ?>