Jump to content

[SOLVED] Strange problem.


HappyPandaFace

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.