I'm having problems with loading a pdf into a php page.
This is the code..
session_start();
if(! isset($_POST['uid']))) {
header("Content-type: application/pdf");
header("Content-Disposition: attachment; filename=downloaded.pdf");
readfile('files/wp.pdf');
}
when i use the session start, it starts to download the pdf but i get "error trying to open the file, it doesn't exits"...but when i take out the if statement and the session_start() it finds it no problem....
any help please???