Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
Bookmark this on Delicious
Share on Facebook
Slashdot It!
Digg
PHP
:
Function Reference
:
Phar archive stream and classes
: Phar::canWrite
Phar::canWrite
Returns whether phar extension supports writing and creating phars
(
)
bool
Phar::canWrite
( )
Example 1798. A
Phar::canWrite()
example
copy to clipboard
<?php
if (
Phar
::
canWrite
()) {
file_put_contents
(
'phar://myphar.phar/file.txt'
,
'hi there'
);
}
?>
<< Phar::canCompress
PHP
:
Function Reference
:
Phar archive stream and classes
: Phar::canWrite
Phar->compressAllFilesBZIP2 >>
Change Language
Phar::apiVersion
Phar::canCompress
Phar::canWrite
Phar->compressAllFilesBZIP2
Phar->compressAllFilesGZ
Phar::__construct
Phar->count
Phar->getMetaData
Phar->getModified
Phar->getSignature
Phar->getStub
Phar->getVersion
Phar->isBuffering
Phar::loadPhar
Phar::mapPhar
Phar::offsetExists
Phar::offsetGet
Phar::offsetSet
Phar::offsetUnset
Phar->setMetaData
Phar->setStub
Phar->startBuffering
Phar->stopBuffering
Phar->uncompressAllFiles
PharFileInfo->chmod
PharFileInfo::__construct
PharFileInfo->getCompressedSize
PharFileInfo->getCRC32
PharFileInfo->getMetaData
PharFileInfo->getPharFlags
PharFileInfo->isCompressed
PharFileInfo->isCompressedBZIP2
PharFileInfo->isCompressedGZ
PharFileInfo->isCRCChecked
PharFileInfo->setCompressedBZIP2
PharFileInfo->setCompressedGZ
PharFileInfo->setMetaData
PharFileInfo->setUncompressed