php create file with 777 permission code example

php create file with 777 permission

2

2 Examples

0
$fp = fopen($file, 'w');
fwrite($fp, $content);
fclose($fp);
chmod($file, 0777); 
by on

0
<?php echo exec('whoami'); ?>

Other Code Examples