Re: readfile()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
> 
> 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux