- 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
link()function in PHP
Use the link() function in PHP to create a hard link.
Syntax
link(target, link)
Parameters
target − The target of the link. Required.
link − The name of the link. Required.
Return
The link() function returns TRUE on success or FALSE on failure.
Example
<?php $file = 'new.php'; $newlink = 'mynew'; link($file, $newlink); ?>
Output
True
Advertisements