RE: [PHP] shell_exec question - Solved

2003-10-09 Thread Chris Blake
To all who contributed to this thread, many thanks... I tried all the suggestions offered but still had the same problem. Today I copied php.ini-dist over to /etc, restarted Apache and everything works. This process was repeated many times during the last day or so, so I don`t know what happened

[PHP] shell_exec question

2003-10-08 Thread Chris Blake
Greetings learned PHP(eople); I`m using a shell_exec to get a list of files from a specified directory. When I run it locally on my machine i works. When I run it on the other machine I get = Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
safe mode is on, turn it off and restart webserver. Then you can check directory permissions. Chris Blake wrote: Greetings learned PHP(eople); I`m using a shell_exec to get a list of files from a specified directory. When I run it locally on my machine i works. When I run it on the other

Re: [PHP] shell_exec question

2003-10-08 Thread David Otton
On 08 Oct 2003 13:25:51 +0200, you wrote: I`m using a shell_exec to get a list of files from a specified directory. When I run it locally on my machine i works. When I run it on the other machine I get What Marek said. However, is there any reason you're not using readdir()?

Re: [PHP] shell_exec question

2003-10-08 Thread Chris Blake
On Wed, 2003-10-08 at 13:56, David Otton wrote: However, is there any reason you're not using readdir()? http://uk.php.net/manual/en/function.readdir.php I`ve got a whole bunch of other stuff happening using shell_exec, eg file searches etc I changed php.ini entry for safemode=on ,

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
Did you edit the right php.ini? Check out phpinfo() output for Configuration File (php.ini) Path Chris Blake wrote: On Wed, 2003-10-08 at 13:56, David Otton wrote: However, is there any reason you're not using readdir()? http://uk.php.net/manual/en/function.readdir.php I`ve got a whole

Re: [PHP] shell_exec question

2003-10-08 Thread Chris Blake
On Wed, 2003-10-08 at 14:51, Marek Kilimajer wrote: Did you edit the right php.ini? Check out phpinfo() output for Configuration File (php.ini) Path Yep, tried that...it states /etc/php.ini, and lists other location of /etc/php/, but that directory doesn`t contain a php.ini file --

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
I think that ALL files in other location are parsed, it does not need to be named php.ini Chris Blake wrote: On Wed, 2003-10-08 at 14:51, Marek Kilimajer wrote: Did you edit the right php.ini? Check out phpinfo() output for Configuration File (php.ini) Path Yep, tried that...it states

Re: [PHP] shell_exec question

2003-10-08 Thread Chris Blake
On Wed, 2003-10-08 at 15:02, Marek Kilimajer wrote: I think that ALL files in other location are parsed, it does not need to be named php.ini I checked in /etc/php/ and it lists the following files : 23_gid.ini 26_imap.ini 27_ldap.ini 34_mysql.ini and 41_readline.ini All these files

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
Then check your httpd.conf for php_(admin_)?(flag|value) Chris Blake wrote: On Wed, 2003-10-08 at 15:02, Marek Kilimajer wrote: I think that ALL files in other location are parsed, it does not need to be named php.ini I checked in /etc/php/ and it lists the following files : 23_gid.ini

Re: [PHP] shell_exec question

2003-10-08 Thread Chris Blake
On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) I checked it but there is nothing for php whatsoever. -- Chris Blake Support Consultant Office : (011) 782-0840 Fax: (011) 782-0841 Mobile : 083 985 0379 Website:

Re: [PHP] shell_exec question

2003-10-08 Thread Chris Blake
On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still when I use phpinfo(); it gives me the usual phpinfo page...

RE: [PHP] shell_exec question

2003-10-08 Thread Ford, Mike [LSS]
On 08 October 2003 15:19, Chris Blake contributed these pearls of wisdom: On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
Start here: grep -r safe_mode /* ;) Chris Blake wrote: On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still

Re: [PHP] shell_exec question

2003-10-08 Thread Burhan Khalid
Chris Blake wrote: OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still when I use phpinfo(); it gives me the usual phpinfo page... First, make sure to restart Apache after you do anything to php.ini Secondly, when php.ini is

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
I thought about it, but safe mode can be set only in php.ini or httpd.conf Burhan Khalid wrote: Chris Blake wrote: OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still when I use phpinfo(); it gives me the usual phpinfo

Re: [PHP] shell_exec question

2003-10-08 Thread John Nichel
Is there a .htaccess file in (or above) the directory that the script is in? If so, look to see if safe mode is turned on there. Chris Blake wrote: On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) OK, so I`ve tried all the

Re: [PHP] shell_exec question....

2003-03-28 Thread David T-G
Kalin -- Please don't hijack threads. This question has nothing to do with your last questions regarding email address regular expressions. For that matter, *that* had nothing to do with php and perl. Mail and news messages have many headers, some of which serve to connect messages together.

[PHP] shell_exec question....

2003-03-27 Thread Kalin Mintchev
hello list, what has to happened so this actually works: $mstrng = shell_exec(/usr/sbin/zip 0041_27032003223711.zip 0041_27032003223711); if php is compiled as a module with apache is the apache owner the one that has to have writing permissions? if so - it does.. any help appreciated...