Reply to Re: Source Displayed With include_once()

Your name:

Reply:


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

Steve wrote:

> Benjamin Esham wrote:
>
> > As another poster suggested, try using "<?php" instead of just "<?".
>
> Something must definitely be wrong in my PHP setup. As soon as I change
> "<?" to "<?php" at the beginning of functions.php, nothing is displayed at
> all - even the view source is completely blank.
>
> Why would phpinfo() work, but it doesn't read this file correctly?

I don't know. At the beginning of the include file, after the <?php but
before any of the function definitions, insert

echo '<h1>functions.php</h1>';
phpinfo();

When you run your script again you should see "functions.php" and the output
from phpinfo(). If this doesn't appear, then your file is not being
included. If it does appear, your problem lies somewhere in one of your
functions or function calls.

HTH,
--
Benjamin D. Esham
bdesham@gmail.com | AIM: bdesham128 | Jabber: same as e-mail
"In the beginning the Universe was created. This has made a lot
of people very angry and been widely regarded as a bad move."
— Douglas Adams

[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

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