Javascript debugger
Website design
↑
This method determines whether write access has been disabled in the system php.ini via the phar.readonly ini variable.
<?php
if (Phar::canWrite()) {
file_put_contents('phar://myphar.phar/file.txt', 'hi there');
}
?>
phar.readonly |