HappyPandaFace Posted April 16, 2007 Share Posted April 16, 2007 I'm using php on my server and I'm hosting locally. i'm using php 5 and apache 2 to do this. I installed php and apache on my laptop and everything worked fine, I was even able to install a mySQL database too. Now I want a dedicated server, so I tried to move every thing to a desktop. I'm using the exact same configuration but when I open a php file from my server using Mozilla Firefox 2 it asks me if I want to download it or open it. So I clicked open, and it opened my file, but i didn't want to do this for every file so the net php file I open I checked the 'always do this from now on' box and then it just started opening the php file constantly in new tabs. It did stop opening the page until I closed Firefox. What is wrong? Link to comment https://forums.phpfreaks.com/topic/47184-solved-strange-problem/ Share on other sites More sharing options...
HappyPandaFace Posted April 16, 2007 Author Share Posted April 16, 2007 Wow, this is weird. I accessed the desktop server from my laptop and its working fine (except for the mySQl functions i haven't installed). i'm using the exact same browser on both machines. Link to comment https://forums.phpfreaks.com/topic/47184-solved-strange-problem/#findComment-230095 Share on other sites More sharing options...
bsprogs Posted April 16, 2007 Share Posted April 16, 2007 The only time I've seen it ask if you want to open or download a php file is when the apache server doesn't recognize the php extension. I guess create a new php file and type this: <?php phpinfo(); ?> After it loads in a new window, lets see what it says. Edit: Nevermind - it's solved Link to comment https://forums.phpfreaks.com/topic/47184-solved-strange-problem/#findComment-230098 Share on other sites More sharing options...
HappyPandaFace Posted April 16, 2007 Author Share Posted April 16, 2007 ok nevermind. Sorry, for some reason it doesn't work when i type in 'localhost' into the address bar, but when i type in my ip address it worked fine. Link to comment https://forums.phpfreaks.com/topic/47184-solved-strange-problem/#findComment-230099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.