Maracles Posted May 12, 2009 Share Posted May 12, 2009 I use a couple of programs for developing my website; Dreamweaver CS3 and Notepad++. However whenever I try to set the default testing browser to Chrome in either program, it downloads a file rather than displaying the page, even when I type the full local file path into the Chrome browser it downloads the file rather than display the page. I have found a round about way of manually displaying the pages in Chrome but was wondering if I can get the browser default to work? Sorry that this is directly PHP code related :-S Quote Link to comment https://forums.phpfreaks.com/topic/157865-solved-how-can-i-test-in-google-chrome/ Share on other sites More sharing options...
Daniel0 Posted May 12, 2009 Share Posted May 12, 2009 It works for me. Install a web server on your computer though. Quote Link to comment https://forums.phpfreaks.com/topic/157865-solved-how-can-i-test-in-google-chrome/#findComment-832662 Share on other sites More sharing options...
Maracles Posted May 12, 2009 Author Share Posted May 12, 2009 I do have a web server installed (I think) are you referring to programs such as XAMPP? This is what I have installed. I should have clarified that this is only for pages requiring server-side code i.e. php pages, I can get .html pages to display. Do I need to congiure XAMPP specifically to work in chrome? Quote Link to comment https://forums.phpfreaks.com/topic/157865-solved-how-can-i-test-in-google-chrome/#findComment-832679 Share on other sites More sharing options...
Daniel0 Posted May 12, 2009 Share Posted May 12, 2009 [...] even when I type the full local file path into the Chrome browser [...] Won't work. Chrome doesn't know how to interpret PHP. Quote Link to comment https://forums.phpfreaks.com/topic/157865-solved-how-can-i-test-in-google-chrome/#findComment-832685 Share on other sites More sharing options...
Maracles Posted May 12, 2009 Author Share Posted May 12, 2009 Ok, thats a bummer. Cheers for the help, ill carry on doing the long way round! Quote Link to comment https://forums.phpfreaks.com/topic/157865-solved-how-can-i-test-in-google-chrome/#findComment-832693 Share on other sites More sharing options...
Philip Posted May 12, 2009 Share Posted May 12, 2009 I do have a web server installed (I think) are you referring to programs such as XAMPP? This is what I have installed. Once you have that installed properly and running, simply visit http://localhost in any browser and you should see your pages. Quote Link to comment https://forums.phpfreaks.com/topic/157865-solved-how-can-i-test-in-google-chrome/#findComment-832708 Share on other sites More sharing options...
thebadbad Posted May 12, 2009 Share Posted May 12, 2009 A bit late: Well, no browser can interpret PHP. You'll need to put your files in your htdocs folder within the XAMPP folder, and then view them via http://localhost/script.php or http://127.0.0.1/script.php. Quote Link to comment https://forums.phpfreaks.com/topic/157865-solved-how-can-i-test-in-google-chrome/#findComment-832711 Share on other sites More sharing options...
Maracles Posted May 12, 2009 Author Share Posted May 12, 2009 Thanks guys, that is actually what I have been doing so far. I think I was just being really lazy and wanted to be able to press F12 in Dreamweaver rather than refresh the page! As you can probably tell I'm just starting out, currently struggling to wrap my head around learning 'functions' :-s! Quote Link to comment https://forums.phpfreaks.com/topic/157865-solved-how-can-i-test-in-google-chrome/#findComment-832731 Share on other sites More sharing options...
Daniel0 Posted May 13, 2009 Share Posted May 13, 2009 As you can probably tell I'm just starting out, currently struggling to wrap my head around learning 'functions' :-s! You can imagine functions as mini-programs within your program that are readily executable at any time. You can pass information to these via arguments and you can return information back from that function. A function can also have what's called a side-effect, which could be things like printing output to the screen, creating a file, etc. Quote Link to comment https://forums.phpfreaks.com/topic/157865-solved-how-can-i-test-in-google-chrome/#findComment-832947 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.