echo '<script type="text/javascript">window.open("File://C:/Program Files/EasyPHP/www/synchro/eb/Client.txt","","");<\/script>';
?> <script type="text/javascript"> window.open("File://C:/Program Files/EasyPHP/www/synchro/eb/Client.txt","",""); ou window.open("File://C:\\Program Files\\EasyPHP\\www\\synchro\\eb\\Client.txt","",""); </script> <?php
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question$fichier="nom fichier sur le serveur"; header("Content-Type: application/force-download"); header("Content-Transfer-Encoding: binary"); header("Content-Disposition: attachment; filename='$fichier'"); $fn=fopen("$fichier","r"); fpassthru($fn); fclose($fn);
$fichser="../répertoire de téléchargement/fichier"; ... header("Content-Type: application/force-download"); header("Content-Transfer-Encoding: binary"); header("Content-Disposition: attachment; filename='$fichser'"); $fn=fopen("$fichser","r"); fpassthru($fn); fclose($fn);