downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Phar::compress> <Phar::canCompress
[edit] Last updated: Fri, 17 May 2013

view this page in

Phar::canWrite

(PHP >= 5.3.0, PECL phar >= 1.0.0)

Phar::canWriteDevolver si la extensión phar soporta la escritura y creación de archivos phar

Descripción

bool Phar::canWrite ( void )

Este método estático determina si ha sido deshabilitado el acceso a escritura en el php.ini del sistema mediante la variable INI phar.readonly.

Parámetros

Valores devueltos

TRUE si el acceso a escritura esta habilitado, FALSE si está deshabilitado.

Ejemplos

Ejemplo #1 Un ejemplo de Phar::canWrite()

<?php
if (Phar::canWrite()) {
    
file_put_contents('phar://miphar.phar/fichero.txt''hola, qué tal');
}
?>

Ver también



add a note add a note User Contributed Notes Phar::canWrite - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites