Hello,
I’m sorry, my English is bad
This code works fine.
But, I want to create a temporary pdf file and the url
Example:
[php]//echo base64_decode($content);
$my_pdf_files = base64_decode($content);
www.mysite.com/4534546246246.pdf[/php]
like,
Can you help?
pdf.php
PHP Code:
[php]<?php
$pdffile_date=$row[‘pdf_file_name’];
$pdffiledate = substr($pdffile_date,0,21);
$file = “./pdfs/”.$row[‘pdf_file_name’];
$transaction = fopen($file, “r”);
$content = fread($transaction, filesize($file));
header(“Content-Type: application/pdf”);
header(“Content-Transfer-Encoding: binary”);
if(!empty($_REQUEST[‘pdf_is_download’])){
$pdffilename=$pdffiledate.".pdf";
header(“Content-Disposition: attachment; filename=$pdffilename”);
}
echo base64_decode($content);
fclose($transaction);
?>[/php]
Thank you in advance