The PHP lchgrp() function changes the group ownership of a symbolic link (a link in the filesystem).

Note: This function does not work on Windows platforms.

				
					<?php
$target = 'images.php';
$link = 'images';
symlink($target, $link);
lchgrp($link, 8)
?>
				
			

Output

				
					// changes the group ownership of a symbolic link
				
			

Syntax

				
					lchgrp(file, group)
				
			

Parameters

ParameterDescription
fileSpecifies the path to the symlink (required)
groupSpecifies the new group by name or number (required)