Safe_Mode problem....

From: Date: Sun, 01 Sep 2002 20:11:41 +0000
Subject: Safe_Mode problem....
Groups: php.general 
Request: Send a blank email to php-general+get-114940@lists.php.net to get a copy of this message
HI all... I'm trying to use "exec" and "unlink" in one of my PHP programs. Here is the code: if (exec ('euro-update.program')) { $result = mysql_query("load data local infile 'euroAUD1.txt' into table Money_AUD") or die ("AUD Load did not work."); unlink('euroAUD1.txt'); } else { echo "Didn't work again"; } PHP will not allow me to do this because safe_mode is on. I've been trying for the past two weeks to turn it off. Nothing I do changes it. I've changed, php.ini, SuSE's http config file, I've added paths to my php files, and rebooted. Can someone give me an idea what next to do? Either how to turn off safe_mode or a work around on the code. BTW I'm using SuSE 8.0, PHP, and Mysql on a self-made PI/233. Thanks JIM -- Vielfeind -- Viel Ehr' Antiamerikanische Propaganda in der Philatelie des 20. Jahrhunderts http:/www.fecundswamp.net/~hatridge/stamps/index.html

« previous php.general (#114940) next »