GrahamBoyd Posted December 23, 2008 Share Posted December 23, 2008 I don't know if this is the right forum for this topic. Other places I have searched seem to point to Apache as the problem, but no solutions there. I have seen that other people are also having the same problem. The problem seems to relate to files opening as — file:///C:/localweb/ .... when sent from Dreamweaver 8.0 The first html/php page loads correctly from dreamweaver as processed HTML, a second page linked from either an HTML or php page also loads correctly, but selecting any link from that or subsequent pages displays the full php code instead of processed html layout - so this appears to be a third level or greater problem. If I manually substitute - http://localhost/ — the problem does not arise. This is a problem with version 3 of firefox, all previous versions I used worked fine with both — file:///C:/localweb/ and http://localhost/ Both prefixes also appear with pure HTML sites, but they load and function correctly. Not every php site I have loads with file:///C:/localweb/, so I am wondering if this relates to something in the php code? I use winxp and have xampp installed - everything worked fine until I installed Firefox 3 Quote Link to comment https://forums.phpfreaks.com/topic/138107-firefox-3-displays-the-php-code-when-pages-launched-from-dreamweaver-8/ Share on other sites More sharing options...
trq Posted December 23, 2008 Share Posted December 23, 2008 file:///C:/localweb/ will never work because your code needs to be executed via the webserver at http://localhost Quote Link to comment https://forums.phpfreaks.com/topic/138107-firefox-3-displays-the-php-code-when-pages-launched-from-dreamweaver-8/#findComment-721956 Share on other sites More sharing options...
GrahamBoyd Posted December 23, 2008 Author Share Posted December 23, 2008 Hi Thorpe, Thanks for your prompt reply. I guessed that the problem lays in the file:///C:/localweb/ URL. Have you any idea about what to do to prevent it happening - where the problem is located? I've compared HTML and PHP files on my various sites and can find no immediate differences that would compel the pages to load as file:///C:/localweb/ instead of http://localhost I'm not a php coder, but understand some of it .. I employed a coder to write the php for me. Any help would be appreciated Quote Link to comment https://forums.phpfreaks.com/topic/138107-firefox-3-displays-the-php-code-when-pages-launched-from-dreamweaver-8/#findComment-721970 Share on other sites More sharing options...
trq Posted December 23, 2008 Share Posted December 23, 2008 Sorry, I'm not a dreamweaver user. This is actually a dreamweaver setting Im sure. You would need to setup your site url (or something simular) to use http://localhost. Quote Link to comment https://forums.phpfreaks.com/topic/138107-firefox-3-displays-the-php-code-when-pages-launched-from-dreamweaver-8/#findComment-721975 Share on other sites More sharing options...
448191 Posted December 29, 2008 Share Posted December 29, 2008 I haven't used Dreamweaver in many years, but perhaps this is because you are using relative links while not having defined a "site" in Dreamweaver? Quote Link to comment https://forums.phpfreaks.com/topic/138107-firefox-3-displays-the-php-code-when-pages-launched-from-dreamweaver-8/#findComment-725152 Share on other sites More sharing options...
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.