View Full Version : How do i include php into a html-page as ssi?
TB2
Tue 23rd May '00, 12:12am
Hi!
I know how to include perl scripts as ssi into html-pages - but how could i include a php-script into an html-page?
I'm just a php newbie ;)
John
Tue 23rd May '00, 12:31am
You would need to set HTML pages to be parsed by the PHP parser, then you would include the PHP code within the HTML as you would normally:
<?
phpcode;
?>
John
TB2
Sat 27th May '00, 6:08am
Hi John,
i've edited the following line on my server (FreeBSD, Apache) like this:
AddType application/x-httpd-php3 .php3 .phtml .php .html .shtml .htm
Is this right?
Is this enough?
If i create a simple html-page and include your lines like this:
<html>
<head>
</head>
<body>
Test!
<?
phpcode;
?>
End!
</body>
</html>
i'll only see "Test!End!" on my screen ... ?
Any hints for me?
PHP works fine but i want to include php's like the active topics hack into a html-page ...
Powered by vBulletin™ Version 4.0.0 Beta 4 Copyright © 2009 vBulletin Solutions, Inc. All rights