PHP 5.0.4 with Windows XP - trying to do file zip utility causes Apache 2.0.53 to crash



Has anyone had any luck with file zipping utilities for PHP 4-5 and
Windows XP with Apache 2.0.53?

Following is my code snippet:

PHP Code:
if ($this->isSuccessful) { // RUN ZIP COMMAND BASED
UPON STRING
$zipName = ($album) ? "${section}s_$album" : "${section}s";
$zipName .= '.zip';
// NEW 4/1/2005 SEE NOTES IN classes.inc.php ON
getKommandOSArray() METHOD
list($zipKommand, $zipRedirect) =
@array_values($this->getKommandOSArray('zip-jF9'));
$msg = exec("$zipKommand $locationPath/$zipName " .
trim($imageList) . " $zipRedirect");
if (preg_match('/zip error:/i', $msg)) {
$this->isSuccessful = false;
$this->setErrorArray(array('action' => "Error attempting to
create zip file from album \"$album\": " . nl2br($msg)));
}
if ($this->isSuccessful && is_file("$locationPath/$zipName")
&& (int)@filesize("$locationPath/$zipName") >
(int)$maxDownloadableFileSize) {
$this->isSuccessful = false;
$this->setErrorArray(array('willDownloadDisk' => 'ZIP archive
file size is larger than maximum allowable downloadable file size of '
..

DownloadableComponentsView::displayReadableMaxDownloadableFileSize() .
', file
destroyed'
)
);
@unlink("$locationPath/$zipName");
}
}
}

Where "zip-jF9" in Windows comes out to be

Quote:
wzzip -u -en


I read online that WZZIP is a utility that will allow for using WinZip
in Windows within a command line prompt, which I would need to do in
order to use PHP's exec() command to do such.

Following are the steps I took:

1) Downloaded and installed WZZIP - making sure wzzip.exe and
wzunzip.exe exist in the same folder as winzip32.exe
2) Added "C:\Program Files\WinZip" to my PATH environmental variable
3) Rebooted
4) Restarted Apache

However, upon attempt to run the above PHP snippet, my Firefox and my
IE windows both locked up and Apache crashed!

I am thinking "WZZIP" is a big mistake, or, bad installation, or.. ??

Any thoughts or alternative ideas for file zipping in Windows using
PHP?

Thanx
Phil

.



Relevant Pages

  • Re: Developing PHP under Windows - Why?
    ... Windows 2000, Apache 2, Microsoft SQL Server, and PHP. ... We went with the Windows route mainly for human resource reason. ... I knew virtually nothing about Linux at the time - and very little about Apache. ...
    (comp.lang.php)
  • Re: PHP5 install in Windows Vista
    ... need, purely for convenience, to set up a parallel platform under Windows. ... I suppose you're using a recent installer (older ones were broken in Vista ... not even PHP). ... You must use proper DLL from PHP installation, not from Apache. ...
    (comp.lang.php)
  • Re: PHP5beta2 - anyone successfully installed in
    ... and actually i'm running both php 4.3.4 and php5 beta 2 on windows ... To install successfully as apache module, ...
    (comp.lang.php)
  • Re: Apache 2.2.2 and PHP 5.1.4 on Win2k crashing
    ... Everything works except PHP: when starting Apache, ... pops out a message saying that it is unable to locate the module (even ... I'm running XAMPP fine on Windows XP ...
    (comp.lang.php)
  • Re: PHP is looking for php.ini file in c:windows
    ... Configuration File - C:\WINDOWS ... Be sure to restart your PC, since Apache needs to read this env var ... when using PHP as CGI" ... WINDOWS nor anything in the REGISTRY. ...
    (comp.lang.php)