Reply to Re: Source Displayed With include_once()

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация