|  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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-06 01:00 UTC]
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]
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-2021 The PHP Group
All rights reserved.
Last updated: Wed Jan 20 14:01:23 2021 UTC