fazlionline Posted June 23, 2009 Report Posted June 23, 2009 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? Quote
fazlionline Posted June 23, 2009 Author Report Posted June 23, 2009 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. Quote
Andrea Posted June 23, 2009 Report Posted June 23, 2009 You'd need to install WAMP in order to get PHP to work on your computer. http://www.killerphp.com/videos/ Quote
fazlionline Posted June 23, 2009 Author Report Posted June 23, 2009 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 Quote
virtual Posted June 23, 2009 Report Posted June 23, 2009 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. Quote
fazlionline Posted June 24, 2009 Author Report Posted June 24, 2009 (edited) yes virtual but after the include function, i am unable to edit any contenet of my page.!!! Edited June 24, 2009 by fazlionline Quote
virtual Posted June 25, 2009 Report Posted June 25, 2009 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? Quote
fazlionline Posted June 25, 2009 Author Report Posted June 25, 2009 yes this is my code <?php include "menu_province_eng.php" ?> is there anything wrong in the ocde? Quote
fazlionline Posted June 25, 2009 Author Report Posted June 25, 2009 yes this is my code <?php include "menu_province_eng.php" ?> is there anything wrong in the ocde? Quote
PicnicTutorials Posted June 25, 2009 Report Posted June 25, 2009 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. Quote
fazlionline Posted November 7, 2009 Author Report Posted November 7, 2009 wow i fixed it with <?php @include "menu_province_eng.php" ?> i have only added @ symbol and it works Quote
falkencreative Posted November 7, 2009 Report Posted November 7, 2009 wowi fixed it with 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: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.