iMatthieu a dit:Bon aller, j'ai fais un exemple avec petit clique pour petit dragonpar ici
Evidemment le code suivant dois être exécuté par un serveur web qui peut interpréter du php, c'est à dire quasi tous les serveurs web... mais en mettant ça dans un fichier html et en l'ouvrant directement dans un navigateur ça va pas le faire
Bloc de code:<?php if (isset($_GET['openFinder'])) { header('Location:file:///'.$_GET['openFinder']); exit; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title></title> </head> <body> <a href="evilsky.php?openFinder=Applications">Voilà mon petit dragon</a> </body> </html>
mozilla
Security Error: Content at http://www.imatt.ch/evilsky.php?openFinder=Applications may not load or link to file:///Applications.
safari ne devrait pas pouvoir authoriser ce genre de truc et pourquoi pas un script au bout