Hello to all,
I’ve made a php script to transform a xml file into a pdf one, and is working properly, but I have to make a change in it. Once the pdf file is create, I print on the web browser the link on which the user have to click on in order to see the file, using this:
echo ‘<br /><h2><a href="’ .($filepath) . ‘" target="_blank">Click to see the file</a>. </h2><br>’;
where $filepath has the path to the pdf file.
Now I want to eliminate this “unnecessary” and a bit uncomfortable user click, so that, the PDF file will be open automaticaly at the end of the php script. So, is there any function, maybe in javascript or in php, that allows me to do this? Hope you can help me!!. I guess this must be very simple, but I’m new on php.
Thanks in advance!.