Download
Download Latest
Version Support Policy
Documentation
Documentation Home
Tutorial
Project
Governance
Branding
License
GitHub Repository
Community
Contribute to PHP
Online Communities
Events | Conferences
Mailing Lists
PHP 8.5
All Releases
Search docs
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Exceptions
Generators
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Filesystem Security
Database Security
Error Reporting
Using Register Globals
User Submitted Data
Magic Quotes
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Safe Mode
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Credit Card Processing
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
Zip
PHP Manual
PHP Manual
»
圧縮およびアーカイブ
»
Zip
Zip
はじめに
この拡張モジュールにより、ZIP 圧縮されたアーカイブとその内部のファイルに対する透過的な読み書きが可能となります。
インストール/設定
要件
インストール手順
リソース型
定義済み定数
例
ZipArchive
— ZipArchive クラス
ZipArchive::addEmptyDir
— 新しいディレクトリを追加する
ZipArchive::addFile
— 指定したパスからファイルを ZIP アーカイブに追加する
ZipArchive::addFromString
— 内容を指定して、ファイルを ZIP アーカイブに追加する
ZipArchive::addGlob
— ディレクトリから、glob パターンを使ってファイルを追加する
ZipArchive::addPattern
— ディレクトリから、PCRE パターンを使ってファイルを追加する
ZipArchive::clearError
— ステータスエラーメッセージか、システムエラー/ zip メッセージをクリアする
ZipArchive::close
— アクティブな (オープンされた、あるいは新しく作成された) アーカイブを閉じる
ZipArchive::count
— アーカイブにあるファイルの数を数える
ZipArchive::deleteIndex
— インデックスを使用して、アーカイブ内のエントリを削除する
ZipArchive::deleteName
— 名前を使用して、アーカイブからエントリを削除する
ZipArchive::extractTo
— アーカイブの内容を展開する
ZipArchive::getArchiveComment
— ZIP アーカイブのコメントを返す
ZipArchive::getArchiveFlag
— Zip アーカイブのグローバルフラグの値を返す
ZipArchive::getCommentIndex
— エントリのインデックスを使用して、エントリのコメントを返す
ZipArchive::getCommentName
— エントリ名を使用して、エントリのコメントを返す
ZipArchive::getExternalAttributesIndex
— インデックスで定義されたエントリの外部属性を取得する
ZipArchive::getExternalAttributesName
— 名前で定義されたエントリの外部属性を取得する
ZipArchive::getFromIndex
— インデックスを使用して、エントリの内容を返す
ZipArchive::getFromName
— 名前を使用して、エントリの内容を返す
ZipArchive::getNameIndex
— インデックスを使用して、エントリの名前を返す
ZipArchive::getStatusString
— システムエラー、または ZIP メッセージに関するエラー情報を返す
ZipArchive::getStream
— 名前を使用して、エントリのファイルハンドラ (読み込み専用) を取得する
ZipArchive::getStreamIndex
— インデックスで指定されたエントリへの、ファイルハンドラを取得する(読み取り専用)
ZipArchive::getStreamName
— 名前で指定されたエントリへの、ファイルハンドラを取得する(読み取り専用)
ZipArchive::isCompressionMethodSupported
— 圧縮方式を libzip がサポートしているかをチェックする
ZipArchive::isEncryptionMethodSupported
— 暗号化方式を libzip がサポートしているかどうかをチェックする
ZipArchive::locateName
— アーカイブ内のエントリのインデックスを返す
ZipArchive::open
— ZIP ファイルアーカイブをオープンする
ZipArchive::registerCancelCallback
— アーカイブを閉じている間にキャンセルできるようにコールバックを登録する
ZipArchive::registerProgressCallback
— アーカイブを閉じている間に更新できるようにコールバックを登録する
ZipArchive::renameIndex
— インデックスを使用してエントリ名を変更する
ZipArchive::renameName
— 名前を使用してエントリ名を変更する
ZipArchive::replaceFile
— 指定されたパスのファイルにアーカイブの一部を置き換える
ZipArchive::setArchiveComment
— ZIP アーカイブのコメントを設定する
ZipArchive::setArchiveFlag
— Zip アーカイブのグローバルフラグを設定する
ZipArchive::setCommentIndex
— インデックスを使用してエントリのコメントを設定する
ZipArchive::setCommentName
— 名前を使用してエントリのコメントを設定する
ZipArchive::setCompressionIndex
— インデックスで定義されたエントリの圧縮方法を設定する
ZipArchive::setCompressionName
— 名前で定義されたエントリの圧縮メソッドを設定する
ZipArchive::setEncryptionIndex
— index で定義されたエントリの暗号化方法を指定する
ZipArchive::setEncryptionName
— 名前で定義されたエントリの暗号化方式を設定する
ZipArchive::setExternalAttributesIndex
— インデックスで定義されたエントリの外部属性を設定する
ZipArchive::setExternalAttributesName
— 名前で定義されたエントリの外部属性を設定する
ZipArchive::setMtimeIndex
— インデックスを使用してエントリの変更時間を設定する
ZipArchive::setMtimeName
— 名前を使ってエントリの変更時間を設定する
ZipArchive::setPassword
— アクティブなアーカイブにパスワードを設定する
ZipArchive::statIndex
— インデックスを使用してエントリの詳細を取得する
ZipArchive::statName
— 名前を使用してエントリの詳細を取得する
ZipArchive::unchangeAll
— アーカイブに対するすべての変更を取り消す
ZipArchive::unchangeArchive
— アーカイブ全体に対して行われたすべての変更を取り消す
ZipArchive::unchangeIndex
— 指定したインデックスのエントリに対するすべての変更を取り消す
ZipArchive::unchangeName
— 指定した名前のエントリに対するすべての変更を取り消す
Zip 関数
zip_close
— ZIP ファイルアーカイブを閉じる
zip_entry_close
— ディレクトリエントリを閉じる
zip_entry_compressedsize
— ディレクトリエントリの圧縮時のサイズを取得する
zip_entry_compressionmethod
— ディレクトリエントリの圧縮方法を取得する
zip_entry_filesize
— ディレクトリエントリの実際のファイルサイズを取得する
zip_entry_name
— ディレクトリエントリの名前を取得する
zip_entry_open
— 読込み用にディレクトリエントリをオープンする
zip_entry_read
— オープンされたディレクトリエントリから読み込む
zip_open
— Zip ファイルアーカイブをオープンする
zip_read
— Zip ファイルアーカイブの中の次のエントリを読み込む
↑
and
↓
to navigate •
Enter
to select •
Esc
to close •
/
to open
Press
Enter
without selection to search using Google