steven rowlands Posted February 20, 2007 Share Posted February 20, 2007 Hi all, i'm new to PHP. i've downloaded wamp5, started all services, uninstalled IIS (to be on the safe side) and i have a problem. When i type into my browser a file that is in wamp/www root for e.g http//:localhost/index.php, it displays the file i put there correctly. However, when I try to open the site in dreamweaver, ever though I've made all the connections, i can't seem to preview the php files. It allows me to open them in dreamweaver, but when i hit f12 it asks me ifi want to open or save the file. very strange. What am i doing wrong anyone?? Quote Link to comment https://forums.phpfreaks.com/topic/39317-cant-preview-view-php-files-in-dreamweaver/ Share on other sites More sharing options...
cmgmyr Posted February 20, 2007 Share Posted February 20, 2007 you have to set up the testing server in the "site". you will have to enter the server document root and also your localhost address. You can find this when you edit the site preferences/locations Quote Link to comment https://forums.phpfreaks.com/topic/39317-cant-preview-view-php-files-in-dreamweaver/#findComment-189625 Share on other sites More sharing options...
suttercain Posted February 24, 2007 Share Posted February 24, 2007 I'm with this guy. I too have dreamweaver and have to preview PHP in Firefox. I would like to be able to via the php when I click "Design." I was able to connect to my localhost MySQL under the Application>Databases but can't for the life of me figure out how to configure the PHP so I can preview it within DreamWeaver MX 2004. Any help would be great. Thanks in advance. Shannon Quote Link to comment https://forums.phpfreaks.com/topic/39317-cant-preview-view-php-files-in-dreamweaver/#findComment-193295 Share on other sites More sharing options...
suttercain Posted February 26, 2007 Share Posted February 26, 2007 Que paso? Quote Link to comment https://forums.phpfreaks.com/topic/39317-cant-preview-view-php-files-in-dreamweaver/#findComment-194043 Share on other sites More sharing options...
draftermath Posted February 27, 2007 Share Posted February 27, 2007 it's because it's executed on the server side, dreamweaver would need to run it through the php running off the apache web server, no locally liek when its generates its file c:\wamp\www\anything.html my wordage might not be that good though Quote Link to comment https://forums.phpfreaks.com/topic/39317-cant-preview-view-php-files-in-dreamweaver/#findComment-195606 Share on other sites More sharing options...
dbrimlow Posted March 18, 2007 Share Posted March 18, 2007 This comes up a lot with Dreamweaver users. Anyone who works with dynamic websites and uses a Windows based PC should download and instal WAMP (Windows ,Apache, MySQL, PHP). http://www.wampserver.com It is a packaged binary suite that turns a windows PC into a web server. You would designate c:wamp/apache/www as your server in DW site editor. Then synchronize your local site to the www folder. This will automatically make your site viewable in FF and IE as http://localhost. It comes with phpmyadmin so you can create your MySQL databases as easy as you do on a remote server. All serverside code will work with WAMP (except, of course ASP and Windows based SSC). You can also tweak the apache conf file and turn on/off/download php modules. You would even then be able to use a CMS like Joomla, Drupal, PHPNuke, etc. locally. Quote Link to comment https://forums.phpfreaks.com/topic/39317-cant-preview-view-php-files-in-dreamweaver/#findComment-210140 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.