Re: Can't execute external program

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

 



Hi
Still desperate
DOCUMENT_ROOT is /var/www/html
Check all settings at http://provi.voicenetworx.net:8080/t.php
>From the command line it runs perfectly:
[root@hnick html]# /var/www/html/myprog -E 123456789098.dat sample1.txt
sample1.new
(no output, it just creates the file .new)

Here is the php I've created, fairly simple:
<?php
exec("/var/www/html/myprog -E 123456789098.dat sample1.txt
sample1.new");
phpinfo();
?>



On 11/22/05, n.g. <nyvsld@xxxxxxxxx> wrote:
>
> is /var/www/html your web root dir ?
> maybe its the plobrem.
>
> On 11/23/05, Henry Castillo <henryperu@xxxxxxxxx> wrote:
> > That was on of the first things I checked:
> > safe mode is set to off
> >  Any ideas...
> > Henry
> >   Voip tech said the following on 11/20/2005 10:31 PM:
> > > Hello,
> > > I cannot get exec(), system() or passthru() to run an extenal program.
> > > From the command line it runs perfectly:
> >
> > <snip>
> >
> > > I'm getting frustrated, Any help will be deeply appreciated
> > > Henry
> >
> > The answer is probably in your php.ini. Look into whether you are
> > running in safe mode or not, and if you are whether you have your
> > program in the safe_mode_exec_dir or not. Also check disable_functions
> > to see if any of the ones you are having trouble with are listed.
> >
> > - Ben
> >
> >
>
>
> --
> Tomorrow will be a good day :-)
>

[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