Errr... feel embaressed asking but I've done the same...

You do have <?php ?> tags around your code? Easy to leave off when there's
no HTML in the page.

Matt

"Ilari Kaartinen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > when I include the statement <? include ("foo.php"); ?> then rather than
> > parsing the file and displaying the results the whole file is just
dumped to
> > screen as a text file.  Interesting the same problem occurs whatever the
> > file extension so the same thing happens for foo.htm, foo.html and
foo.txt!
>
> From PHP manual:
>
> The require() statement replaces itself with the specified file, much like
the C preprocessor's #include works.
>
> --
>  - Castus Ilarius, Magister Ludi Machinationis



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to