Download this file and unzip it in the adds folder, then created.
Such files are shown below:
sw7.jpg
love.txt
Love's not time's fool, though rosy lips and cheeks within his bending sickle's compass come; or bends with the remover to remove.
Let me not to the marriage of true minds if this be error and upon me proved, oh, no, it is an ever fixed mark. Which alters when it alteration finds, it is the star to every wand'ring bark, admit impediments; love is not love.
Your Wildest Dreams.m4a
lorem.txt
Portuguese:
Lorem Ipsum é simplesmente uma simulação de texto da indústria tipográfica e de impressos, e vem sendo utilizado desde o século XVI, quando um impressor desconhecido pegou uma bandeja de tipos e os embaralhou para fazer um livro de modelos de tipos. Lorem Ipsum sobreviveu não só a cinco séculos, como também ao salto para a editoração eletrônica, permanecendo essencialmente inalterado. Se popularizou na década de 60, quando a Letraset lançou decalques contendo passagens de Lorem Ipsum, e mais recentemente quando passou a ser integrado a softwares de editoração eletrônica como Aldus PageMaker.
English:
Lorem Ipsum is simply a text simulation of the typography and printing industry and has been in use since the 16th century when an unknown printer took a tray of types and shuffled them to make a book of type models. Lorem Ipsum survived not only five centuries but also the leap into desktop publishing, remaining essentially unchanged. It became popular in the 1960s, when Letraset released decals containing passages from Lorem Ipsum, and more recently when it became integrated into desktop publishing software such as Aldus PageMaker.
sete anões.txt
Soneca, Dengoso, Feliz, Atchim, Mestre, Zangado e Dunga
star.png
You must save all the files shown above, in a folder: adds, which will be used in the next exercises.
If you find it convenient, you can store them in another folder, as long as you follow the paths indicated in each exercise.
EXERCISE
<?php
$link02a = __DIR__ . '/adds/';
$link02b = __DIR__ . '/temp/';
$trg02 = $link02a . '/sw7.jpg'; // MUST EXIST
$lnk02 = $link02b . '/sw7.jpg'; // SHOULD NOT EXIST
var_dump(link($trg02, $lnk02));
?>
RESULT
This case produces:
bool(true)
This operation causes the image: sw7.jpg to be stored in the folder: temp.
If this exercise were run again, the system will display a Warning..., followed by a: