|
Posted by Benjamin Esham on 08/06/06 06:18
Steve wrote:
> 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?
It would seem that the file functions.php is not being interpreted as PHP
code. Check your server settings to make sure that the file is placed in a
suitable directory for inclusion.
Also, you might make sure that your include file begins with <?php and ends
with ?>. Otherwise, PHP has no way of knowing that your code is anything
other than plain text.
HTH,
--
Benjamin D. Esham
bdesham@gmail.com | AIM: bdesham128 | Jabber: same as e-mail
"Given that sooner or later we're all just going to die, what's
the point of learning about integers?" — Calvin
[Back to original message]
|