Posted By

alfonsobeta on 02/29/08


Tagged

php pdf


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

wbowers
luman
tspitzr


Pdf embebido


 / Published in: PHP
 

URL: http://es2.php.net/manual/es/ref.pdf.php

  1. <?php
  2. $len = filesize($filename);
  3. header("Content-type: application/pdf");
  4. header("Content-Length: $len");
  5. header("Content-Disposition: inline; filename=foo.pdf");
  6. readfile($filename);
  7. ?>

Report this snippet  

You need to login to post a comment.