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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kjvsu at aol dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 17:01:34 2025 UTC