Okay so I'm currently trying to set up a PHP development environment with MySQL on my comp so that I can construct a forum and blog for a site I'm making for my youth group. I'm running windows XP and I'm trying to set this up through an Apache server. Everything with Apache and MySQL seems to be running smoothly, but I've run into some problems with PHP.
I followed a tutorial online for configuring PHP for Apache, and everything seems to check out. As far as I know I've put all the files where they need to be, and when I run a config test on Apache everything checks out with no errors, but when I try to load a .php page on firefox through my Apache server, all I get is the raw PHP code, nothing else. And when I try to run it in IE I get a dialog box asking me to download the php file. =/ Any ideas what the problem might be?
Here's some screenshots of the way my folders and config files are set up, so you get a better idea of what's going on here.
Here is the php folder. I haven't touched anything in here. As you can see it's directly on my hard drive.
Now here's the apache folder. I copied the three php files you see from the php folder. The one that's just called php was originally the php.ini-recommended file from the php folder. The only change I made to that file was to designate the root folder for php documents, which is the htdocs folder under the apache folder.
And finally, here's the httpd configuration document which is in the conf folder under the apache folder. I left it alone except for adding the loadmodule lines at the very bottom.
I'll try to give you more info if you need it.
Any help would be much appreciated. =]