PHP readlink() Funktion
❮ Referenz zum PHP-DateisystemBeispiel
Holen Sie sich das Ziel eines symbolischen Links:
<?php
echo readlink("/user/testlink");
?>
Definition und Verwendung
Die Funktion readlink() gibt das Ziel eines symbolischen Links zurück.
Syntax
readlink(linkpath)
Parameterwerte
Parameter | Description |
---|---|
linkpath | Required. Specifies the link path to check |
Technische Details
Rückgabewert: | Das Ziel des Links bei Erfolg, FALSE bei Misserfolg |
---|---|
PHP-Version: | 4.0+ |
PHP-Änderungsprotokoll: | PHP 5.3: readlink() jetzt auf Windows-Plattformen verfügbar |
❮ Referenz zum PHP-Dateisystem