Re: Including a file using php //
| From: | louie miranda | Date: | Tue, 15 Jan 2002 10:41:56 +0000 |
| Subject: | Re: Including a file using php // | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80543@lists.php.net to get a copy of this message | ||
Read the content
I mean, echo it on the browser..
----- Original Message -----
From: "Henning Sprang" <henning_sprang@gmx.de>
To: "louie miranda" <louie@chikka.com>
Cc: <bvr@xs4all.nl>; <php-general@lists.php.net>
Sent: Tuesday, January 15, 2002 6:32 PM
Subject: Re: [PHP] Including a file using php //
> louie miranda wrote:
>
> > So u mean like this?
> >
> >
> > <?php
> >
> > include('http://192.168.129.103/noc/chikkaps.txt');
> > ?>
> >
> >
> > Only?, Im not good with this, can you give me some samples?
>
>
>
> do you want to include the code in that file or read the content?
>
> include is used to include code for execution,
> if you wanna read the content of the file you have to use the fopen and
> fread functions, see the manual section "filesystem functions".
>
>
> HTH,
> Henning
>
>