Unix and Linux Discussions Tagged with symbolic link |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
6 |
5,568 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
3,644 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,887 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
3,551 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
3,204 |
Web Development |
|
|
|
1 |
4,088 |
Shell Programming and Scripting |
|
|
|
6 |
26,505 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
17,774 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
10,598 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
18,949 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
20,121 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
13,305 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,655 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,287 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
15,095 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
7,906 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
18,595 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
36,943 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
17,895 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,240 |
UNIX for Dummies Questions & Answers |
|
|
|
18 |
8,123 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
8,546 |
UNIX for Dummies Questions & Answers |
SYMLINK(3) 1 SYMLINK(3)
symlink - Creates a symbolic link
SYNOPSIS
bool symlink (string $target, string $link)
DESCRIPTION
symlink(3) creates a symbolic link to the existing $target with the specified name $link.
PARAMETERS
o $target
- Target of the link.
o $link
- The link name.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.3.0 | |
| | |
| | This function is now available on Windows plat- |
| | forms (Vista, Server 2008 or greater). |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
Create a symbolic link
<?php
$target = 'uploads.php';
$link = 'uploads';
symlink($target, $link);
echo readlink($link);
?>
NOTES
Note
Windows users should note that this function will only work if the system you run PHP from is Windows Vista/Windows Server 2008 or
newer. Windows versions prior to that do not support symbolic links.
SEE ALSO
link(3), readlink(3), linkinfo(3).
PHP Documentation Group SYMLINK(3)