Converting file permission values : stat « File Directory « PHP






Converting file permission values

 
<?php
$file_info = stat('/tmp/session.txt');
$permissions = base_convert($file_info['mode'],10,8);
?>
  
  








Related examples in the same category

1.stat() function returns Unix timestamps for the date and time data
2.stat() function returns a comprehensive indexed array of file information
3.File accessed, modified, created time