Re: Calling text files
| From: | David Robley | Date: | Tue, 17 Oct 2000 06:03:05 +0000 |
| Subject: | Re: Calling text files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20531@lists.php.net to get a copy of this message | ||
On Tue, 17 Oct 2000, Website4S@aol.com wrote:
> Hi,
>
> This is just a little question, but I just wanted to check it was possible
> before I start programming. Is it possible to call a xxxx.txt file which
> contains text to be displayed on a page, the reason I want to do it this way
> is it would be easier for the site administrator to simply edit a text file
> than to edit text in a .php file.
>
> Thanks for any info
>
> Ade
Require() or include() will do what you want. You might need to make some
additions to your include_path settings.
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA