Re: [PHP] storing files in database and retriving them
[email protected] (Nilesh Govindarajan)
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
Dude! I found the bug probably, you're using fopen() in 'r' mode which is meant to read ASCII text. Since PDF is a binary file (probably?), you should use binary mode. Try with mode = 'rb' in fopen(). -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website: http://www.itech7.com VPS Hosting: http://www.itech7.com/a/vps