Page 1 of 1

PHP not working in html doco

PostPosted: 29. January 2008 00:16
by Kifaru
Hey guys,

Xampp works great! everything installed great.
It was so easy!

I have one problem.
when i try and run an html file with php in it it dosn't display the php
checked html etc and it semms fine and the php part runs fine as a php document

<html>
<head>
<title> Testing PHP in HTML</html>
</head>
<body>
<b>
<?php
phpinfo();
?>
</b>
</body>
</html>

when i open this via localhost it is just a white screen.

any ideas or options i havn't done to get this to work?

any help would be great

PostPosted: 29. January 2008 00:27
by Izzy
A file containing both html and php code should have a .php file extension.
myphpinfo.php