Re: readfile()
| From: | Jochem Maas | Date: | Thu, 11 Jan 2007 09:52:32 +0000 |
| Subject: | Re: readfile() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246893@lists.php.net to get a copy of this message | ||
Steven Macintyre wrote:
> HI all
>
> I'm currently using this function to read a remove address to create a
> mailbox ...
>
> However - It ALWAYS displays the output of that file to the user screen ...
> all I wish to do is something like ...
use a different file function. e.g. file_get_contents()
if you read the relevant manual page it might become clear why
readfile() always display the output to the user:
http://php.net/readfile
>
>
> $status = Readfile(warra warra warra);
>
> If ($status === "MailBox Created") {
>
> Do more stuff
> } else {
> Tell user that there was a problem
> }
>
> How is this done ...
>
> At current - the "MailBox Created" and error message if there is always
> displays raw on the screen as if its outputting that buffer
>
> Kind Regards,
>
>
> Steven Macintyre
> http://steven.macintyre.name
> --
>
> http://www.friends4friends.co.za
>
>
>
>