Click to See Complete Forum and Search --> : PHP problems


gman420
10-29-2002, 10:58 AM
I am trying to use PHP on an Apache server which will eventually link to a mySQL database. I have been testing one step at a time. The apache server works perfectly. PHP was actually installed during the installation of RH 7.3. I cross referenced the httpd.conf file with the NHF HowTo to make sure everything is correct.

When I tried to open this page with IE 6 it tries to download text.php instead of displaying the page.

Here is the link
http://www.j-web.us/text.php

This is probably a simple fix but I could not find a solution by searching the threads, no luck with the php webpage or googling.


Thanks for the help.

mrBen
10-29-2002, 11:16 AM
Check that Apache has been setup to associate the .php file extension with mod_php.

Try saving it as test.php4 instead - sometimes they set that up as the 'default' instead.

Gnufsh
10-29-2002, 11:25 AM
Yup. I'm just seeing text, so PHP is not parsing the script. Douple check that .php is assciated with mod_php like mrBen said. there should be an addtype or something line followed by a mime-type then the file extensions.

gman420
10-29-2002, 11:58 AM
Thanks for the help. As you can see it is working now. :D