Re: Problems downloading a PDF

From: Date: Wed, 04 Apr 2007 13:34:33 +0000
Subject: Re: Problems downloading a PDF
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-252039@lists.php.net to get a copy of this message
Mário Gamito wrote: > Hi, > >> that's what I said before. you echo out some html before the file >> headers. that will never work. >> remove the echo statement on line 14 and you should be okay > But i need the line > > echo "<a href=\"products-testudio.php?file=testudio.pdf\"", > " rel=\"external\">Download TESTUDIO flyer</a>"; > > to display the link for download!!! > > How can i sove this puzzle ? by reading the freaking replies that you get?!? :-), I did give you the answer to this in the rewritten code I offered. (granted there is a typo in that code, but I figure your capable enough to find the superfluous parentheses and remove it) I see you did take on some of what I proposed - but notice that in your latest bit of code the echo statement that outputs the link when there is an 'error' is *inside* the 'if (isset($_GET['FILE']))' block (which is not the case i the example I sent) > > Full code follows my signature. > > Thanks for all your help guys. > > Warm Regards,

« previous php.general (#252039) next »