01-06-2014
Installing ZIP module for PHP
Hi Guys,
I am using SOLARIS 10 and I want to install ZIP module for PHP.
I went to this link
http://pecl.php.net/package/zip and I choose zip-1.12.3.tgz, the latest "stable" release, and then transferred it to my server.
Then I went to my path /usr/local/apache2/conf then untar the zip-1.12.3.tgz and extracted the files there...
Now, I am not sure what needs to be done from here so that I can enable the ZIP module.
What should I do to make sure that the ZIP module is configured?
Please Help!!!!
Thanks in advance...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm new to UNIX.....
I'm trying to test a software that requires Perl. I installed Perl 5.004_04 without any problem on a UNIX SCO OpenServer Machine.
The software I'm testing also requires some Perl Modules (Net::Telnet, Test::More, Net::Telnet::Cisco & Term::ReadKey).
I installed... (4 Replies)
Discussion started by: rrivas
4 Replies
2. SCO
Hi Guys,
I want ur replies very very Urgently.Plz. don't ignore this mail.
I am using Sco openserver 5.0.2 and i have downloaded jdk1.2.2
for that i have installed it.The jdk is working fine.
Then i download jakarta-tomcat-4.1.24.zip and i have installed it.
In order... (1 Reply)
Discussion started by: ananthu_m
1 Replies
3. Shell Programming and Scripting
I am trying to write a program that will use templates, so I figured I would use the Text::Template CPAN module...
...only problem is that I cant force my "clients" to install this module, cause they are clueless. Is there anyway that I can NOT install it for the whole machine, but install it... (1 Reply)
Discussion started by: jjinno
1 Replies
4. UNIX and Linux Applications
Hi,
I am trying to install perl module DBD::mysql and don't know how to resolve the following:
# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base.............ok 3/5install_driver(mysql) failed: Can't load... (3 Replies)
Discussion started by: Yogesh Sawant
3 Replies
5. Shell Programming and Scripting
Hi All,
When I tried to install Math::Pari module in a AIX 5.3 server,I am getting the following error.
# pwd
/usr/local/bin
# cd Math-Pari-2.010709
# perl Makefile.PL
Did not find GP/PARI build directory around.
Do you want to me to fetch GP/PARI automatically?
(If you do not, you... (2 Replies)
Discussion started by: surjithss
2 Replies
6. Shell Programming and Scripting
Hi
I'm not able to install graphical GD module in perl for UNIX/Solaris environment. Can anybody suggest?
Pooja... (1 Reply)
Discussion started by: wadhwa.pooja
1 Replies
7. Shell Programming and Scripting
Hi,
I want to install WWW:Mechanize module.
Followed the following steps:
1. wget http://www.cpan.org/authors/id/C/CO/CORION/Bundle-
WWW-Mechanize-Shell-0.29.tar.gz
perl Makefile.PL
make
make test
make install (Got the below message)
Appending installation info to... (1 Reply)
Discussion started by: Anjan1
1 Replies
8. Linux
Hi gud day,
I would like to ask if possible to load the driver i compiled module without installing it in the ubuntu-kernel-distro/updates* or simple not executing "make install". what i mean is i compile the compat wireless driver using make and i want to try to load
on the system without... (1 Reply)
Discussion started by: jao_madn
1 Replies
9. Ubuntu
I was trying to install new kernel in my backtrack which was having kernel 3.2.6. i tried installing 3.8.5.
I refered to book linux kernel in nutshell i followed every step. after i rebooted (i had set new kernel in default as my backtrack doesn't display options to select while booting) it... (3 Replies)
Discussion started by: kg_gaurav
3 Replies
10. Proxy Server
Hi,
I have downloaded Audio::Beep. I tried to install it through CPAN but i got YAML error. Then I have tried to install it manually. I tried all the instructions provided in README file. It worked but when i am compiling , it still gives me error:
# ls
acct21.pl~ imap(2).pl ... (15 Replies)
Discussion started by: zak100
15 Replies
LEARN ABOUT PHP
ziparchive.addfile
ZIPARCHIVE.ADDFILE(3) 1 ZIPARCHIVE.ADDFILE(3)
ZipArchive::addFile - Adds a file to a ZIP archive from the given path
SYNOPSIS
bool ZipArchive::addFile NULL (string $filename, [string $localname], [int $start], [int $length])
DESCRIPTION
Adds a file to a ZIP archive from a given path.
PARAMETERS
o $filename
- The path to the file to add.
o $localname
- If supplied, this is the local name inside the ZIP archive that will override the $filename.
o $start
- This parameter is not used but is required to extend ZipArchive.
o $length
- This parameter is not used but is required to extend ZipArchive.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
This example opens a ZIP file archive test.zip and add the file /path/to/index.txt. as newname.txt.
Example #1
Open and add
<?php
$zip = new ZipArchive;
if ($zip->open('test.zip') === TRUE) {
$zip->addFile('/path/to/index.txt', 'newname.txt');
$zip->close();
echo 'ok';
} else {
echo 'failed';
}
?>
NOTES
Note
When a file is set to be added to the archive, PHP will lock the file. The lock is only released once the ZipArchive object has
been closed, either via ZipArchive::close or the ZipArchive object being destroyed. This may prevent you from being able to delete
the file being added until after the lock has been released.
PHP Documentation Group ZIPARCHIVE.ADDFILE(3)