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?
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.
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/
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
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.
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
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?
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?
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?
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.
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
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:
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now