API16

API16:JArchiveZip/hasNativeSupport

From Joomla! Documentation

Revision as of 22:47, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Method to determine if the server has native zip support for faster handling <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JArchi...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Method to determine if the server has native zip support for faster handling

[Edit Descripton]

Template:Description:JArchiveZip/hasNativeSupport

Syntax

hasNativeSupport()


Returns

boolean True if php has native ZIP support

Defined in

libraries/joomla/filesystem/archive/zip.php

Importing

jimport( 'joomla.filesystem.archive.zip' );

Source Body

function hasNativeSupport()
{
        return (function_exists('zip_open') && function_exists('zip_read'));
}

[Edit See Also] Template:SeeAlso:JArchiveZip/hasNativeSupport

Examples

<CodeExamplesForm />