co.ador Posted March 15, 2010 Share Posted March 15, 2010 When I try to open the file path below in the browser http://localhost/folder/index.php It will pop up a box saying whether I want to open or save the file? I want it to open in the browser not in a editor or save in the disk. Does anyone has an idea why this behavior is coming up? THank you Jonathan. Link to comment https://forums.phpfreaks.com/topic/195341-issues-opening-a-file-in-the-browser/ Share on other sites More sharing options...
StathisG Posted March 15, 2010 Share Posted March 15, 2010 This happens in every browser? Link to comment https://forums.phpfreaks.com/topic/195341-issues-opening-a-file-in-the-browser/#findComment-1026508 Share on other sites More sharing options...
Rifts Posted March 15, 2010 Share Posted March 15, 2010 its because its .php you need to need be running a server to view it such as wampserver or xxamp then itll work fine or change it to .html Link to comment https://forums.phpfreaks.com/topic/195341-issues-opening-a-file-in-the-browser/#findComment-1026515 Share on other sites More sharing options...
co.ador Posted March 15, 2010 Author Share Posted March 15, 2010 @stathis I tried in several browser and it will produce the same behavior @riffs I have wamp server it work from another foder but from a particular folder won't Link to comment https://forums.phpfreaks.com/topic/195341-issues-opening-a-file-in-the-browser/#findComment-1026525 Share on other sites More sharing options...
StathisG Posted March 15, 2010 Share Posted March 15, 2010 Very strange.. I asked about the browsers because I encountered a similar error once and it had something to do with a firefox add-on. In your case it seems that it's a wamp's problem. Maybe something with a .htaccess file? I cannot think of anything else. Sorry. Also try restarting everything (in case you didn't do it already). Link to comment https://forums.phpfreaks.com/topic/195341-issues-opening-a-file-in-the-browser/#findComment-1026532 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.