Re: [PHP] Running a Shell Script in PHP HELP!

2001-09-30 Thread Armando Cerna
On Sunday 30 September 2001 04:31 pm, Matt Greer wrote: > On Sunday 30 September 2001 18:23, Armando Cerna wrote: > > I have tried system (updatemp) and exec (updatemp) > > The system() function requires a string as its argument. So you need to > write it as system("updatemp"); or system("$files")

Re: [PHP] Running a Shell Script in PHP HELP!

2001-09-30 Thread Matt Greer
On Sunday 30 September 2001 18:23, Armando Cerna wrote: > I have tried system (updatemp) and exec (updatemp) The system() function requires a string as its argument. So you need to write it as system("updatemp"); or system("$files"); Matt -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Running a Shell Script in PHP HELP!

2001-09-30 Thread Armando Cerna
On Sunday 30 September 2001 04:23 pm, Kath wrote: > Executing the script could be good :) > > Try a system(); command. > > Alas, remember, PHP runs as whatever user apache does, so chances are it > has no privledges to run any of these operations as it is > www/nobody/apache/daemon/etc. > > You co

Re: [PHP] Running a Shell Script in PHP HELP!

2001-09-30 Thread Kath
Executing the script could be good :) Try a system(); command. Alas, remember, PHP runs as whatever user apache does, so chances are it has no privledges to run any of these operations as it is www/nobody/apache/daemon/etc. You could sudo it in the system call. - k - Original Message