Re: very basic question (including)
| From: | David Robley | Date: | Fri, 29 Sep 2000 07:00:12 +0000 |
| Subject: | Re: very basic question (including) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18002@lists.php.net to get a copy of this message | ||
On Fri, 29 Sep 2000, Bryan K. wrote:
> Hi,
>
> I'm very new to PHP, and on my way to getting a book for it as well.
> However I have one little project I would like to get out of the way.
>
> I just need to have a page (say newproducts.php3) include another page
> within its body. That way I can just upload a changed file instead of
> working around the main newproducts page. How can I do this?
>
> Thanks!
>
> Bryan
Use include('filename') if it's in the same directory or one listed in the
include_path php.ini directive, or include('/full/path/to/filename') using
the system path, not the file part of the URL.
--
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