I have zip.exe in my PATH on a windows XP box. Additionally, I have a script
which, if I execute locally with
php myfile.php
it runs fine. However, when I call myfile.php remotely with a web browser,
it canot seem to find zip.exe. Below are the releveant code snippets. TIA,
Ike
exec( "zip -mj \backups\temp\c ookbook.zip \backups\temp\c ookbook.sql 2>&1",
$output, $res );
if( $res 0 ) {
error( true,"COMPRESSI ON FAILED\n".implo de( "\n", $output));
COMPRESSION FAILED
The system cannot execute the specified program.
which, if I execute locally with
php myfile.php
it runs fine. However, when I call myfile.php remotely with a web browser,
it canot seem to find zip.exe. Below are the releveant code snippets. TIA,
Ike
exec( "zip -mj \backups\temp\c ookbook.zip \backups\temp\c ookbook.sql 2>&1",
$output, $res );
if( $res 0 ) {
error( true,"COMPRESSI ON FAILED\n".implo de( "\n", $output));
COMPRESSION FAILED
The system cannot execute the specified program.
Comment