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_$a lbum" : "${section} s";
$zipName .= '.zip';
// NEW 4/1/2005 SEE NOTES IN classes.inc.php ON
getKommandOSArr ay() METHOD
list($zipKomman d, $zipRedirect) =
@array_values($ this->getKommandOSAr ray('zip-jF9'));
$msg = exec("$zipKomma nd $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("$locat ionPath/$zipName")
&& (int)@filesize( "$locationP ath/$zipName") >
(int)$maxDownlo adableFileSize) {
$this->isSuccessful = false;
$this->setErrorArray( array('willDown loadDisk' => 'ZIP archive
file size is larger than maximum allowable downloadable file size of '
..
DownloadableCom ponentsView::di splayReadableMa xDownloadableFi leSize() .
', file
destroyed'
)
);
@unlink("$locat ionPath/$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 5 2177
I read about both of those, but neither are practical for a portable,
cross-platform, cross-version web application as mandated by the
contractual obligations, sorry. They are great and useful, but this
has to work in PHP 4.1.2 - 5+, Windows and UNIX, and be completely and
fully portable (and I didn't list the other demands, it just gets
worse)
Phil
On 3 Oct 2005 08:20:35 -0700, comp.lang.php wrote: I read about both of those, but neither are practical for a portable, cross-platform, cross-version web application as mandated by the contractual obligations, sorry. They are great and useful, but this has to work in PHP 4.1.2 - 5+, Windows and UNIX, and be completely and fully portable (and I didn't list the other demands, it just gets worse)
Phil
Please look at http://www.safalra.com/special/googlegroupsreply/
Ok, is that better? Now, do you happen to know the solution to the
problem involving a file zip utility for Windows XP for a portable web
application?
Phil
Obvious wrote: On 3 Oct 2005 08:20:35 -0700, comp.lang.php wrote:
I read about both of those, but neither are practical for a portable, cross-platform, cross-version web application as mandated by the contractual obligations, sorry. They are great and useful, but this has to work in PHP 4.1.2 - 5+, Windows and UNIX, and be completely and fully portable (and I didn't list the other demands, it just gets worse)
Phil
Please look at http://www.safalra.com/special/googlegroupsreply/
Thanx!! A modification of Archive_Zip did the trick! And it seems to
only be necessary within Windows/Apache as WZZIP is reported to work
within Windows/IIS using PHP 5+.
Thanx again!
Phil This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Arthur M. Kang |
last post by:
Can somebody concur or verify the following? I'm having this problem on all
of my installations.
I've got Apache 2.0.40 and PHP 4.2.2 installed and configured from RedHat
RPMs. Nothing out of the ordinary. In the httpd.conf file, PHP files are
called with the following:
<Files *.php>
SetOutputFilter PHP;INCLUDES
SetInputFilter PHP
|
by: Hemanth |
last post by:
Hello there,
I've a utility that runs on a linux machine. Basically, it opens
a window, draws a figure and captures the image (screen) and stores
it as a jpeg file. The utility requires a window to be open
(or displayed) inorder to save the image. Also, this utility is
in the form of an executable, so I can't possibly alter it.
I want to run this utility from a windows web browser and display
the saved jpeg file. I pass some command...
|
by: Will Stuyvesant |
last post by:
Bruce Eckel has a good article about using a browser as UI for
applications you write:
http://mindview.net/WebLog/log-0045
His example code is nice, he sets up a webserver *and is able to kill
it too via a HTML button*. But his webserver does not do CGI. I have
been trying to change the code with CGIHTTPRequestHandler and other
such things, I have also tried various "recipes" for CGI webservers,
but I can not get something that...
|
by: Peter Otten |
last post by:
Is there a way to limit both width and height of a canvas text item?
My current workaround seems clumsy:
import Tkinter as tk
root = tk.Tk()
canvas = tk.Canvas(root, width=400, height=200, bg="white")
canvas.pack()
# simulate a clipped text item - never transparent :-(
s = "The long and winding road.."
|
by: Kris |
last post by:
I have a Windows Service in C# talking to a serial port and using Remoting.
It also uses several COM objects. On customer's computer the service will
occassionally hang somewhere - the service still shows on a Task Manager
list. In Services it says it is still running. However there is no way to
stop it other than by rebooting the whole computer. No exception (including
non-CLS) is ever generated. I added a separate System.Timers.Timer...
| |
by: Chris Paul |
last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows.
I've set this up countless times on BSD (piece of cake) but I'm trying
to do this on Windows now so that my developer can work on her local
machine.
Everything looks pretty good. OpenLDAP/cygwin works great. PostgreSQL
works great. Apache runs. PHP runs.
But when I try to connect to my PostgreSQL server using PHPPgAdmin, I
|
by: Vincent |
last post by:
Hello,
Does anyone have a problem with Apache2 crashing after executing a PHP
script with session_start()? I notice if session_start() is placed
anywhere except at the start of the file, APache will crash. Can anyone
explain to me why? I don't want session_start to be at the start of the
file because I need to override some session methods. So session_start
has to happen after the declaration of custom session methods.
Can anyone...
|
by: AmberJain |
last post by:
Windows Autorun FAQs: Description
NOTE- If you are unfamiliar with the concept of autoruns, then read "Windows Autorun FAQs: Overview".
Que-1: How can I safely remove or edit the autorun settings on my PC?
Ans: I recommend that you backup all of your important data before trying anything mentioned in this article. When a person is tweaking with autoruns, one has to rely on 'trial and error' methods and so there is always the possibility...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |