Re: Scrape? (Fetch email)

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

 



Jake wrote:
> $buffer = '';
> $fp = fopen("php://stdin", "r");
> if ($fp)
> {
>  while(!feof($fp))
>  {
>    $buffer .= fgets($fp, 4096);
>  }
>  fclose($fp);
> }
> 


That will get you the data  (I think file_get_contents('php://stdin')
will also work).

Interpreting the mail is a little harder but I think there is a pecl
extension for it... yup: http://pecl.php.net/package/mailparse

HTHs

Col

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