Jump to content

Proposer des PDF en téléchargement


Recommended Posts

juste pour remettre a flot ce petit script qui marche tres bien, ne pas oublier les normes en register global en modifiant l'en-tête du fichier d'appel :

<?php
header("Content-type: application/pdf");
header("Content-Disposition: attachment; filename=$_GET[pdf]");
readfile($_GET['pdf']);
?>

:whistling:

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...