Hướng dẫn php ziparchive::open from string - php ziparchive :: mở từ chuỗi

(Php 5> = 5.2.0, Php 7, Php 8, Pecl Zip> = 1.1.0)

Show

    Ziparchive :: Mở - Mở Lưu trữ tệp ZIPOpen a ZIP file archive

    说明

    publicZiparchive :: open (chuỗi $filename, int $flags = 0): bool | int ZipArchive::open(string $filename, int $flags = 0): bool|int

    Vì Libzip 1.6.0, một tệp trống không còn là một kho lưu trữ hợp lệ nữa.

    返回

    Trả về true khi thành công hoặc một trong các mã lỗi sau:true on success, or one of the following error codes:

    ZipArchive::ER_EXISTSfile đã tồn tại .________ Lưu trữ 4zip không nhất quán .________ 5Invalid Đối số .________ 6Malloc FAILED .________ 7NO Tệp như vậy .__ File already exists. ZipArchive::ER_INCONS Zip archive inconsistent. ZipArchive::ER_INVAL Invalid argument. ZipArchive::ER_MEMORY Malloc failure. ZipArchive::ER_NOENT No such file. ZipArchive::ER_NOZIP Not a zip archive. ZipArchive::ER_OPEN Can't open file. $flags0 Read error. $flags1 Seek error.

    范例

    示例 #1 mở và trích xuất

    $flags2

    示例 #2 Tạo một kho lưu trữ

    $flags3

    示例 #3 Tạo một kho lưu trữ tạm thời

    $flags4

    Eric tại WebDeveric Dot Com ¶

    13 năm trước

    $flags5

    $flags6

    $flags7

    $flags8

    $flags9

    true0

    abolfazl dot ziaratban tại gmail dot com ¶

    7 năm trước

    true1

    true2

    true3

    OHCC tại 163 dot com ¶

    6 năm trước

    true4

    true5

    true6

    Jekillen tại Prodigy Net ¶

    7 năm trước

    true7

    OHCC tại 163 dot com ¶

    13 năm trước

    true8

    true9

    true0

    abolfazl dot ziaratban tại gmail dot com ¶

    7 năm trước

    ZipArchive::ER_EXISTS1

    ZipArchive::ER_EXISTS2

    ZipArchive::ER_EXISTS3

    ZipArchive::ER_EXISTS4

    true0

    OHCC tại 163 dot com ¶

    6 năm trước

    ZipArchive::ER_EXISTS6

    ZipArchive::ER_EXISTS7

    ZipArchive::ER_EXISTS8

    ZipArchive::ER_EXISTS9

    ZipArchive::ER_INCONS0

    true0

    Jekillen tại Prodigy Net ¶

    JJ tại icglink dot com ¶

    ZipArchive::ER_INCONS2

    Fred Johnson ¶

    JJ tại icglink dot com ¶

    ZipArchive::ER_INCONS3

    Fred Johnson ¶

    2 năm trước

    ZipArchive::ER_INCONS4

    ZipArchive::ER_INCONS5

    true0

    Walter tại Clevertechie Dot Com ¶

    9 năm trước

    ZipArchive::ER_INCONS7

    ZipArchive::ER_INCONS8

    ZipArchive::ER_INCONS9

    OHCC tại 163 dot com ¶

    6 năm trước

    ZipArchive::ER_INVAL0

    ZipArchive::ER_INVAL1

    ZipArchive::ER_INVAL2

    ZipArchive::ER_INVAL3

    ZipArchive::ER_INVAL4

    true0

    OHCC tại 163 dot com ¶

    6 năm trước

    ZipArchive::ER_INVAL6

    Jekillen tại Prodigy Net ¶

    JJ tại icglink dot com ¶

    ZipArchive::ER_INVAL7

    ZipArchive::ER_INVAL8

    true0

    Fred Johnson ¶

    JJ tại icglink dot com ¶

    ZipArchive::ER_MEMORY0

    ZipArchive::ER_MEMORY1

    ZipArchive::ER_MEMORY2

    ZipArchive::ER_MEMORY3

    ZipArchive::ER_MEMORY4

    ZipArchive::ER_MEMORY5

    ZipArchive::ER_MEMORY6

    true0

    Fred Johnson ¶

    JJ tại icglink dot com ¶

    ZipArchive::ER_MEMORY8

    ZipArchive::ER_MEMORY9

    ZipArchive::ER_NOENT0

    ZipArchive::ER_NOENT1

    ZipArchive::ER_NOENT2

    ZipArchive::ER_NOENT3

    true0

    Fred Johnson ¶

    2 năm trước

    ZipArchive::ER_NOENT5

    ZipArchive::ER_NOENT6

    true0

    Walter tại Clevertechie Dot Com ¶

    13 năm trước

    ZipArchive::ER_NOENT8

    ZipArchive::ER_NOENT9

    true0

    abolfazl dot ziaratban tại gmail dot com ¶

    13 năm trước

    ZipArchive::ER_NOZIP1

    ZipArchive::ER_NOZIP2

    ZipArchive::ER_NOZIP3

    ZipArchive::ER_NOZIP4

    ZipArchive::ER_NOZIP5

    true0

    abolfazl dot ziaratban tại gmail dot com ¶

    2 năm trước

    ZipArchive::ER_NOZIP7

    ZipArchive::ER_NOZIP8

    ZipArchive::ER_NOZIP9

    Walter tại Clevertechie Dot Com ¶

    2 năm trước

    ZipArchive::ER_OPEN0

    ZipArchive::ER_OPEN1

    ZipArchive::ER_OPEN2

    ZipArchive::ER_OPEN3

    ZipArchive::ER_OPEN4

    true0