- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
symlink() function in PHP
The symlink() function creates a symbolic link. It returns TRUE on success or FALSE on failure.
Syntax
symlink( target, link)
Parameters
target − Target of the link to be created.
link − Name of the link.
Return
The symlink() function returns TRUE on success or FALSE on failure.
Example
<?php $target = new.php'; $mylink = new.html'; $res = symlink($target, $mylink); if ($result) { echo ("Symlink created!"); } else { echo ("Symlink can’t be created!"); } ?>
Output
Symlink created!
Advertisements
To Continue Learning Please Login
Login with Google