|
Posted by Steve on 08/06/06 05:35
I have just installed Apache 2.2 and PHP 5.1.4 on my Win XP Pro machine.
If I run phpinfo(), it displays everything correctly. However, on a
page where I have included a file that contains some functions, it
merely shows the contents of the included file instead of running the
function. For instance, I have a function called do_html_header() that
does just what the name suggests, and I've used it for quite a while.
The top of my page looks like this:
<?php
include_once("functions.php");
do_html_header("Terms");
?>
However, when I view the page source, the actual PHP code is displayed,
not just the HTML that it is supposed to display. It would seem that
PHP is installed correctly since phpinfo() works fine. Is there
something else I'm missing?
Thanks.
Steve
[Back to original message]
|