Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

symlink in php

<?ph
  // Symlink() is a function to create a symbolic link
  $target = 'path/to/somefile.extension';
  $link = 'File New Link Name';
  $test = symlink($target, $link);
  if($test) {
    echo 'Link created Successfuly.';
  }else {
    echo 'link creation failed.';
  }
?>
 
PREVIOUS NEXT
Tagged: #symlink #php
ADD COMMENT
Topic
Name
3+8 =