PHP Resources
Home
Books
Directories
Magazines
Non-English Sites
Online Communities
Tools
Tutorials and Articles
Web Hosting
PHP Functions
PHP News Groups *
PHP Reference
Smarty Reference
Pear Reference
PHP-GTK Reference

By submitting PHP Resources you own, or know of, you'll help us build the largest PHP Resource website on the net. Please double check that your resource doesn't already exist before you submit it!!. We thank you for helping make this a better website.









Resource Image Newest ResourcesPopular ResourcesTop Resources Resource Image
PHP Resources
PHP: Predefined Constants - Manual

search for in the

Using Phar Archives> <Resource Types
Last updated: Fri, 27 Jun 2008

view this page in

Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

Phar compression constants
Constant Value Description
Phar::NONE (integer) 0x00000000 no compression
Phar::COMPRESSED (integer) 0x0000F000 bitmask that can be used with file flags to determine if any compression is present
Phar::GZ (integer) 0x00001000 zlib (gzip) compression
Phar::BZ2 (integer) 0x00002000 bzip2 compression
Phar file format constants
Constant Value Description
Phar::SAME (integer) 0 retain the same file format
Phar::PHAR (integer) 1 phar file format
Phar::TAR (integer) 2 tar file format
Phar::ZIP (integer) 3 zip file format
Phar signature constants
Constant Value Description
Phar::MD5 (integer) 0x0001 signature with md5 hash algorithm
Phar::SHA1 (integer) 0x0002 signature with sha1 hash algorithm
Phar::SHA256 (integer) 0x0003 signature with sha256 hash algorithm (requires hash extension)
Phar::SHA512 (integer) 0x0004 signature with sha512 hash algorithm (requires hash extension)
Phar::OPENSSL (integer) 0x0010 signature with OpenSSL public/private key pair. This is a true, asymmetric key signature.
Phar webPhar mime override constants
Constant Value Description
Phar::PHP (integer) 1 used to instruct the mimeoverrides parameter of Phar::webPhar() that the extension should be parsed as a PHP file
Phar::PHPS (integer) 2 used to instruct the mimeoverrides parameter of Phar::webPhar() that the extension should be parsed as a PHP source file through highlight_file()


add a note add a note User Contributed Notes
Predefined Constants
There are no user contributed notes for this page.

Using Phar Archives> <Resource Types
Last updated: Fri, 27 Jun 2008
 
 




Featured




Featured
PHP Code Examples
web site templates
Learn PHP playing Trivia
PHP & MySQL Forums
Web Development Index

List Your ResourceUpdate Your Resource

Copyright © 2006 - 2008 MickMel Inc