Re: apache don´t understand php!!----¡¡apache no entiende php!!
| From: | Richard Lynch | Date: | Thu, 15 Nov 2001 18:06:34 +0000 |
| Subject: | Re: apache don´t understand php!!----¡¡apache no entiende php!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74762@lists.php.net to get a copy of this message | ||
Alejandro wrote:
> I have a problem:I have a php page wich runs well when I run it, but when
> I run a html page and links the php file, the source code is seen on the
> screen. It´s like apache wouldn't understand php!!. Any ideas? Thanks
If the file ends in .html, and you have not used AddType in Apache's
httpd.conf file to tell Apache to use PHP to read .html files, then you
will see PHP source, cuz PHP isn't being told by Apache to process the
file...
Find your httpd.conf, search for "AddType" with the PHP setting, and
uncomment it and/or add .html .htm .php3 .php .phtml etc to the end of that
line.
--
Like music? http://l-i-e.com/artists.htm