Re: Problems downloading a PDF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2007. 04. 4, szerda keltezéssel 14.04-kor Mário Gamito ezt írta:
> Hi,
> 
> Ok, i've hardcoded the filename and i no longer get a 404 error.
> But the "PDF" file i get is this:
> 
> "Warning: Cannot modify header information - headers already sent by 
> (output started at /var/www/telbit_website/2/products-testudio.php:14) 
> in /var/www/telbit_website/2/products-testudio.php on line 120

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

greets
Zoltán Németh

> 
> Warning: Cannot modify header information - headers already sent by 
> (output started at /var/www/telbit_website/2/products-testudio.php:14) 
> in /var/www/telbit_website/2/products-testudio.php on line 121
> 
> Warning: Cannot modify header information - headers already sent by 
> (output started at /var/www/telbit_website/2/products-testudio.php:14) 
> in /var/www/telbit_website/2/products-testudio.php on line 122
> %PDF-1.4 %âãÏÓ 351 0 obj <> endobj xref 351 434 0000000016 00000 n 
> 0000010281 00000 n 0000010417 00000 n 0000010574 00000 n 0000010607 
> 00000 n 0000012850 00000 n 0000012884 00000 n 0000013037 00000 n 
> 0000013174 00000 n 0000013704 00000 n 0000014104 00000 n 0000014488 
> 00000 n 0000014700 00000 n 0000014747 00000 n 0000014794 00000 n 
> 0000014842 00000 n 0000014889 00000 n 0000014937 00000 n 0000014984 
> 00000 n 0000015033 00000 n 0000015082 00000 n 0000015130 00000 n 
> 0000015179 00000 n 0000015228 00000 n 0000015277 00000 n 0000015326"
> (etc...)
> 
> > You are echoing stuff before sending the file that is not possible. So
> > remove the echo and it should work. If not, try this for debugging:
> > 
> > if(!is_readable($full)) echo "the file $full is not readable by apache";
> > else {
> > 	//same as before
> > }
> I'm not sure if i understand you :(
> 
> Warm Regards
> -- 
> :wq! Mário Gamito
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux