Home Tutorial Php Phpfiles CHGRP example, chgrp example in PHP, PHP chgrp

 
 

Share on Google+Share on Google+
CHGRP example, chgrp example in PHP, PHP chgrp
Posted on: September 19, 2009 at 12:00 AM
Advertisement
In this section we will learn how to use the chgrp() function in PHP Program.

This example of chgrp()  function in PHP. The chgrp() function is used to change the group permission for the file. To use the example you have to provide the name of the file and the group name to the chgrp() function. This function can be used to change the group from PHP file.

syntax 

bool chgrp ($file ,$group)

Change the filename's  current user group  to  other usergroup .It works on Unix based o/s.

Return true or false 

code

<?php

$a=chgrp("c:/rose1/ss.java","admin");

echo $a;

?>

output 

1

 

Advertisement

Related Tags for CHGRP example, chgrp example in PHP, PHP chgrp:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: September 19, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com