exec() sometimes works sometimes not
Posted: Fri Jun 20, 2008 2:00 pm
Code: Select all
exec("gunzip $filename");
exec("rm -f $filename");
-archie
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
exec("gunzip $filename");
exec("rm -f $filename");
the zip file is created in the same script using this code:arborint wrote:What user creates the zip file? It is probably a permission problem.
Code: Select all
exec("mysqldump --host=$db_host --user=$db_user --password=$db_pass $db_name | gzip -9 > $filename.sql.gz ");