php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8569 php script does not run inside HTML
Submitted: 2001-01-06 00:57 UTC Modified: 2001-01-06 09:43 UTC
From: kjvsu at aol dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 3.0.13 OS: Apache
Private report: No CVE-ID: None
 [2001-01-06 00:57 UTC] kjvsu at aol dot com
I put php code inside a php file it works. But when I put php script inside html, it does not work.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-06 01:00 UTC] cynic@php.net
Have you made appropriate changes in Apache's httpd.conf to let it know it should pass html files to PHP to parse them?
 [2001-01-06 09:43 UTC] rasmus@php.net
You didn't define .html as a PHP type in your httpd.conf file.  Look for the "AddType application/x-httpd-php .php" and append .html to the line.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Jan 21 20:01:23 2020 UTC