View Full Version : How do i include php into a html-page as ssi?
TB2
Mon 22nd May '00, 11:12pm
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
Mon 22nd May '00, 11:31pm
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, 5: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 ...
vBulletin® v3.8.0 Alpha 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.