Lundi 8 décembre 2025
La semaine dernière vous avez installé un client NFS.
Cette semaine vous devez installé un serveur NFS en binôme.
Ensuite il vous faudra inverser les rôles.
Espionner la consultation de vos C.V.s
<?php
$topic = "btsio";
$message = "Hello depuis PHP avec redirection vers un pdf ou un site web quelconque !";
$ch = curl_init("https://ntfy.sh/$topic");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $message);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
# echo $response;
header('Location: https://www.osureunion.fr/wp-content/uploads/2022/03/pdf-exemple.pdf');
# header('Location: http://btsio.net/');
?>