Re: Including a file using php //
| From: | Henning Sprang | Date: | Tue, 15 Jan 2002 10:32:42 +0000 |
| Subject: | Re: Including a file using php // | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80541@lists.php.net to get a copy of this message | ||
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