Re: include ("foo.php") not working
| From: | ilari dot kaartinen at phpoint dot net | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: include ("foo.php") not working | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-59527@lists.php.net to get a copy of this message | ||
> 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