Share on Google+Share on Google+

The filegroup() function, filegroup php, filegroup() in php

Advertisement
The PHP filegroup() function can be used to get the group id of the file.

Example of filegroup() function in PHP

Syntax of filegroup()in PHP

int filegroup ( filename)

It gives the groupid in integer format of the given file based on UNIX o/s

To convert it to proper format use the posix_getgrgid() function

This will convert it to group name

It doesn't work on window

Code for php filegroup() Function

<?php
echo  filegroup("c:/rose1/ram.txt");
?>

Advertisements

Posted on: September 24, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial 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.