Reply to Re: Source Displayed With include_once()

Your name:

Reply:


Posted by Benjamin Esham on 08/06/06 17:02

Steve wrote:

> Benjamin Esham wrote:
>
> > 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.
>
> The included file is in the same directory as the page that is including
> it, and that's the way it worked in the past. Can included files only be
> in the directory specified in php.ini?

AFAIK files can be included from any readable directory. Including a file
from the same directory shouldn't cause any problems.

> > 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.
>
> That was one of the first things I checked.
>
> Here are the first few lines from the functions.php:
>
> <?

As another poster suggested, try using "<?php" instead of just "<?".

HTH,
--
Benjamin D. Esham
bdesham@gmail.com | AIM: bdesham128 | Jabber: same as e-mail
Ceci n'est pas une sig.

[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

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