Hi,
I want to open different PDF Files while counting the opening process.
I would like send an email, once a specific PDF opens. (Simple.) I do have the problem though that I don't seem to get it opened:
The help-file might be opened with an URL like redirect.php?id=123456
<?php
$id = $_REQUEST['id'];
// The PDF File with the number as the name is stored in a folder.
$pdf_file = "folder/".$id.".pdf";
//If I open the header like this:
header("Location: http://www.url.com/.$pdf_file");
//it doesn't work.
//If I do
header('Content-type: application/pdf');
readfile($file);
//it doesn't work either.
?>
How can I open a pdf-document using PHP?
Please help me out here. Thank you very much.
Kelley