Re: question
| From: | Rasmus Lerdorf | Date: | Mon, 15 Jan 2001 21:49:29 +0000 |
| Subject: | Re: question | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-3430@lists.php.net to get a copy of this message | ||
require doesn't return the file. It just returns a status of whether it
succeeded or not. You are printing out this status. Just do:
<?php
require 'source.txt';
?>
-Rasmus
On Sun, 14 Jan 2001, Russ wrote:
> why when i require a file it leaves a 0 at the end eg
> <?php
> $text = require ("source.txt");
> print "$text";
> ?>
>
> when i do then it shows the text in the source.txt but at the end theres a 0 how can i stop
> this.
>
> Russ
> ________________________________________
> Russ webmaster @ www.totallysouthpark.co.uk
>