04-13-2013
i have put all the corrct path. Please let me know how to fix it.
Thanks,
Jewel
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i´m new in unix help me... (2 Replies)
Discussion started by: Texto
2 Replies
2. UNIX for Dummies Questions & Answers
Dear experts,
I have installed Ruby in the following directory:
$ pwd
/home/ewijaya/.ruby
$ ls
bin lib share
And I have also stated the PATH in my bash_profile like this:
# .bash_profile
# Get the aliases and functions
if ; then
. ~/.bashrc (1 Reply)
Discussion started by: monkfan
1 Replies
3. Shell Programming and Scripting
Can we have a shell script for this sort of conversion?
There are some web-based tools which display the contents of tar.Z format. I am trying to convert zip files to that
Thanks in advance (2 Replies)
Discussion started by: eagercyber
2 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I am trying to return the name of the resulting file from a .zip archive file using unix unzip command.
unzip c07212007.cef7081.zip
Archive: c07212007.cef7081.zip
SecureZIP for z/OS by PKWARE
inflating: CEP/CEM7080/PPVBILL/PASS/G0063V00
I used the following command to unzip in... (5 Replies)
Discussion started by: oracledev
5 Replies
5. Windows & DOS: Issues & Discussions
Hi,
On a daily basis I have download .zip file from FTP site. Naming convention of .zip is UCC-20100816.zip
I want to create windows batch file which will automatically download latest .zip file based on system date.
.zip file is gets uploaded on a daily basis on FTP site in... (4 Replies)
Discussion started by: rahulbahulekar
4 Replies
6. Solaris
I am back here after long time!
Need help of experts!
I am trying to unzip a zip file. I tried with unzip and got the below error
#unzip -p ConfigMigrationUtility.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a... (4 Replies)
Discussion started by: kumarmani
4 Replies
7. UNIX for Dummies Questions & Answers
Hi all, need help here in moving a .zip file into a suse system and want it to be in .rar format. How can i do this? (1 Reply)
Discussion started by: mena
1 Replies
8. UNIX for Dummies Questions & Answers
I was trying to copy the file content of program from server to other server you ctrl+c. once after the pasting in the other server the file alignment is getting changed. since I don't have scp permission.
I am getting aligment improperly.
wat needs to be done to make the format ccorrecltly as... (5 Replies)
Discussion started by: k.keerthi2005
5 Replies
9. SCO
Dear Community!
i try to instaled the sco 6 in hp proliant ML350g8
but unsucces,
the trouble when i do instaled it undetected hardisk
please help me
:(:o (7 Replies)
Discussion started by: mnr
7 Replies
10. Solaris
Hi,
I installed some packages required by an app built with python.
But when I try python setup.py install, I get the following error:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.2.0/../../../../sparc-sun-solaris2.10/bin/as: unrecognized option `-m32'
Could anyone tell me what's wrong... (4 Replies)
Discussion started by: Kimkun
4 Replies
LEARN ABOUT PHP
ziparchive.open
ZIPARCHIVE.OPEN(3) 1 ZIPARCHIVE.OPEN(3)
ZipArchive::open - Open a ZIP file archive
SYNOPSIS
mixed ZipArchive::open (string $filename, [int $flags])
DESCRIPTION
Opens a new zip archive for reading, writing or modifying.
PARAMETERS
o $filename
- The file name of the ZIP archive to open.
o $flags
- The mode to use to open the archive.
o ZipArchive::OVERWRITE
o ZipArchive::CREATE
o ZipArchive::EXCL
o ZipArchive::CHECKCONS
RETURN VALUES
o $Error codes
- Returns TRUE on success or the error code.
o ZipArchive::ER_EXISTS File already exists.
o ZipArchive::ER_INCONS Zip archive inconsistent.
o ZipArchive::ER_INVAL Invalid argument.
o ZipArchive::ER_MEMORY Malloc failure.
o ZipArchive::ER_NOENT No such file.
o ZipArchive::ER_NOZIP Not a zip archive.
o ZipArchive::ER_OPEN Can't open file.
o ZipArchive::ER_READ Read error.
o ZipArchive::ER_SEEK Seek error.
EXAMPLES
Example #1
Open and extract
<?php
$zip = new ZipArchive;
$res = $zip->open('test.zip');
if ($res === TRUE) {
echo 'ok';
$zip->extractTo('test');
$zip->close();
} else {
echo 'failed, code:' . $res;
}
?>
Example #2
Create an archive
<?php
$zip = new ZipArchive;
$res = $zip->open('test.zip', ZipArchive::CREATE);
if ($res === TRUE) {
$zip->addFromString('test.txt', 'file content goes here');
$zip->addFile('data.txt', 'entryname.txt');
$zip->close();
echo 'ok';
} else {
echo 'failed';
}
?>
PHP Documentation Group ZIPARCHIVE.OPEN(3)