How to use Filesystem chgrp in PHP

In this article I am going to explain about chgrp function in PHP.
  • 1409

PHP chgrp() function

The filesystem chgrp function is used to changes the file group to a given file.

Syntax of chgrp function

chgrp(file, group)

Parameters in chgrp function

It have two  parameter:

Parameter Description
file Path to the file.
group A group name or number.

Example of filesystem chgrp function

<html>

<body>

 

<?php

$filename = "C:\wamp\www\Dinesh\Mcn.txt";

chgrp ( $filename, "guest" );

?>

 

</body>

</html>


You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.