walleymo Posted November 17, 2006 Share Posted November 17, 2006 Hi everyone. I'm new here. I've been programming for about 5 years, but I'm new to PHP. I just got PHP, Apache, and MySQL installed and I'm reading a book learning these technologies. I'm loving it so far.My problem is, whenever I have an HTML document calling a php file, the browser (Firefox 2) tries to open or download the file instead of executing it. The code executes fine if it's all in one file [i]and[/i] the file extension is .html. Is there a problem with my configuration or something?Forgive me if this question has been asked a lot before.Thanks,Jon Quote Link to comment Share on other sites More sharing options...
bqallover Posted November 17, 2006 Share Posted November 17, 2006 It sounds as though you've missed a step somewhere in the configuration. :) Have you checked the [url=http://www.php.net/manual/en/faq.installation.php]PHP installation FAQ[/url] and closely followed the manual's instructions for your OS, e.g. editing you apache config file and php.ini? Quote Link to comment Share on other sites More sharing options...
btherl Posted November 17, 2006 Share Posted November 17, 2006 Yes, it's the configuration. Apache decides what type a file is (usually based on the extension, but can also be based on location and other factors). So Apache needs to be told to execute .php files using php.I can't give details because I don't know them, sorry :) Quote Link to comment Share on other sites More sharing options...
walleymo Posted November 17, 2006 Author Share Posted November 17, 2006 Thanks for the replies.It helps to know that Apache is what I need to fix.I'll check out the Installation FAQ'sThanks again!Jon Quote Link to comment 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.