![](https://seccdn.libravatar.org/avatar/d1480f90efb2b869666be8cd44bee6c7.jpg?s=120&d=mm&r=g)
HI Kevin et al, On Monday 08 September 2003 15:31, Kevin Donnelly wrote:
On Sunday 07 September 2003 15:29, James Hatridge wrote:
I'm having hell with this !"§$ PHP safe mode. It seems that SuSE complies PHP with safe mode = on. THEREFORE the config file "php.ini" can not turn it off. Can someone who is using PHP & exec in SuSE 8.2 give me an idea how they are doing it? OR how to work around this.
Hmm. Not on my copy: /etc/php.ini says: safe_mode = Off and I haven't changed it.
exec('euro-update.program') or die ('didnt work #1') ;
I think you'll need to give the full path to the program, otherwise php won't know where to find it. Also ensure that those are backticks you're using.
Ok, I check that and changed it to backticks, it changed the error I got. Now this is happening: ##################### Warning: exec() [function.exec]: Cannot execute a blank command in /home/hatridge/public_html/Database/currency.php on line 22 ####################### Here is the piece of code that is making this error: <?php $db = mysql_connect("XXX", "YYYYYY", "ZZZZZ"); mysql_select_db("WartHog",$db); if (file_exists("/var/lib/mysql/WartHog/AUD.txt")){ exec(`/var/lib/mysql/WartHog/euro-update.program`) or die ('didnt work #1') ; } else { echo('File not there'); } ?> ############################# When I use " " or ' ' I get only "didn't work #1". The euro-update.program is just a small bash file. I've got it running very good at the command line. So I know that it works. If you had a bash file to run, how would you do it? Thanks, JIM -- Jim Hatridge Linux User #88484 ------------------------------------------------------ BayerWulf Linux System # 129656 The Recycled Beowulf Project Looking for throw-away or obsolete computers and parts to recycle into a Linux super computer Viel Feind -- Viel Ehr' Anti-US Propaganda stamp collecton http://www.fuzzybunnymilitia.org/~hatridge/collection