PHP 8.3.4 Released!

lchgrp

(PHP 5 >= 5.1.3, PHP 7, PHP 8)

lchgrpChanges group ownership of symlink

Descrizione

lchgrp(string $filename, string|int $group): bool

Attempts to change the group of the symlink filename to group.

Only the superuser may change the group of a symlink arbitrarily; other users may change the group of a symlink to any group of which that user is a member.

Elenco dei parametri

filename

Path to the symlink.

group

The group specified by name or number.

Valori restituiti

Restituisce true in caso di successo, false in caso di fallimento.

Esempi

Example #1 Changing the group of a symbolic link

<?php
$target
= 'output.php';
$link = 'output.html';
symlink($target, $link);

lchgrp($link, 8);
?>

Note

Nota: Questa funzione non opererà su file remoti perché il file che deve essere esaminato deve essere accessibile attraverso il filesysmte del server.

Nota: Questa funzione non è implementata sulle piattaforme Windows.

Vedere anche:

  • chgrp() - Cambia il gruppo del file
  • lchown() - Changes user ownership of symlink
  • chown() - Cambia il proprietario del file
  • chmod() - Cambia le impostazioni del file

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top