Curriculum
Course: PHP Basic
Login

Curriculum

PHP Basic

PHP Install

0/1

PHP Casting

0/1

PHP Constants

0/1

PHP Magic Constants

0/1

PHP Operators

0/1

PHP Reference

0/276
Text lesson

link()

Example

Establish a solid link:

<?php
$target = “text.txt”;
$linkname = “mylink”;

link($target, $linkname);
?>

Definition and Usage

A hard link is created via the link() method.

Syntax

link(targetlink)

Parameter Values

 

Parameter

Description

target

Essential. identifies the goal

link

Essential. provides the link’s name.

Technical Details

Return Value:

FALSE when it fails, TRUE when it succeeds

PHP Version:

4.0+

PHP Changelog:

PHP 5.3.0 is now accessible on Windows-based systems.