• PHP Video Tutorials

PHP - Function symlink()



The symlink() function can create a symbolic link from an existing target with a specified name link, and it can return true on success, or false on failure.

Syntax

bool symlink ( string $target , string $link )

This function can create a symbolic link to an existing target with a specified name link.

Example

<?php
   $target = "/PhpProject/test.php";
   $link = "/test";
   symlink($target, $link);

   echo readlink($link);
?>
php_function_reference.htm
Advertisements