<<< Date Index >>>     <<< Thread Index >>>

Re: mutt and PHP's exec command



On Mon, Mar 15, 2004 at 03:52:36PM EST, dpgirago@xxxxxxxxxxxxxx wrote:

> mutt newbie here, and first time poster to this list...
> 
> I've been trying to get the same command to function from within a PHP 
> webpage that works successfully from the command line.
> 
> On a Linux RH9.0 box, I can successfully run from the command line #> mutt 
> -s 'testing the mutt UA'  user@xxxxxxxxxxxx  -a  testPDF.pdf  < 
> includeMe.txt
> 
> but the same command inside the PHP exec() function , i.e., exec("mutt -s 
> 'testing the mutt UA'  user@xxxxxxxxxxxx  -a  testPDF.pdf  < 
> includeMe.txt") doesn't work. I'm temporarily running the apache httpd as 

<question type="silly">
Did you bother to chdir(2) to the appropriate directory before attempting
to attach and pipe from those files?
</question>

 - Dave

-- 
Uncle Cosmo, why do they call this a word processor?
It's simple, Skyler.  You've seen what food processors do to food, right?

Please visit this link:
http://rotter.net/israel

Attachment: pgpsyfX9Ek9Rv.pgp
Description: PGP signature