I wish for the client to click on a link that will run a php script and then do a forced download. I can easily do this if I make the client have to click on two links
(link 1 to create jpg from php script, link 2 to download the jpg file).
I wish to do so with just one link though.
My php script to force download is here:
<?php
header("Content-type:application/jpg");
header("Content-Disposition:attachment;filename=bobo.jpg");
readfile('bobo.jpg');
?>
This works, but I want this same php script to force the execution of another php script (the one that creates the bobo.jpg).
Please Help!
Thanks,
Doug