Does it execute as the php user or as the apache user?
----- Original Message -----
From: "James Hart" <jamesh@w...>
To: "professional php" <pro_php@p...>
Sent: Thursday, September 21, 2000 7:15 AM
Subject: [pro_php] RE: HOWTO - Executing commands in PHP - sendfax fails !
> Could be a PATH problem.
>
> Check where sendfax is located using the command 'which sendfax' from the
> console. You should get something like /usr/sbin/sendfax. Try specifying
> this entire path to sendfax in your PHP script - e.g.
> exec("/usr/sbin/sendfax -[options]").
>
> If this makes a difference, it's because the value of the PATH environment
> variable used by PHP is set by Apache, and doesn't contain the directory
> sendfax is in.
>
> Also, make sure that the user PHP is running as (typically 'nobody') has
> execute privileges on sendfax.
>
> > -----Original Message-----
> > From: Allan Hedegaard Hansen [mailto:allan_hedegaard@h...]
> > Sent: 21 September 2000 11:28
> > To: professional php
> > Subject: [pro_php] HOWTO - Executing commands in PHP - sendfax fails !
> >
> >
> >
> > when i use the exec(), passthru() and system() funktions in PHP,
> > it works with the command-program "ps" in Linux.
> >
> > When i tries the "sendfax"-command it is not working at all,
> > what is going wrong ??
> >
> > I´m running Linux Mandrake 7.1, Apache webserver 1.3.12 and
> > PHP4.
> >
> > The sendfax-command is working well from a consol.
> >