I'm making a php-script that dumpes the contents of a database and then gzip the dumped file... The script runs as a standalone CLI.
The dump is made with mysqldump, and works as expected through system()...
The gzip command however doens't... Well, actually it does if I run the script from DOS, but not if called from php (with shell_exec).
The gzip command:
Code: Select all
$last_line = system('gzip -fv9 backup\polyfemos_27_07_2005_backup.sql', $result);When called from DOS the script outputs the following:
Code: Select all
cwd=C:\Program Files\Apache\htdocs\plan
result=0
last_line=Code: Select all
cwd=c:\program files\Apache\htdocs\plan
result=1
last_line=My only guess for what's wrong is the current working directory. But the only difference here is that Program Files is spelled witg lowercase letters in the later file output...
My hair is turning gray over this, so please give me hint if you got a clue...
regards tores