|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-07 18:21 UTC] johannes@php.net
[2005-06-07 18:26 UTC] vishal at trpn dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 16:00:01 2025 UTC |
Description: ------------ I had it working on previous websites, however for some reason it is not working anymore :( I have tried both lines in .htaccess file but with no success. AddHandler application/x-httpd-php .html AddType application/x-httpd-php .html Any help. I really need to use php on .html page. P.S. I am using PHP Version 4.3.11. Reproduce code: --------------- <!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head> <title>Test Page for PHP on .html page</title> </head> <body> The time is <?php echo date('H:i:s');?> and the date is <?php echo date('j F Y');?> </body> </html> Expected result: ---------------- Expected php codes to work properly only .html pages. Actual result: -------------- 500 Internal Server Error