Zubrag.com
February 03, 2012, 08:57:47 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Corrupt DOC Download  (Read 2956 times)
rb
Newbie
*
Posts: 3


« on: November 08, 2007, 11:00:15 am »

New to your download product.  Looks great however encountered a problem when downloading a DOC file.  There seems to be a CRLF at the beginning of the downloaded file.

Logged
rb
Newbie
*
Posts: 3


« Reply #1 on: November 08, 2007, 04:06:46 pm »

Your code works fine but when placed within my code a CRLF is added to the file.  Very odd.  Any suggestions would be appreciated.
Logged
zubrag
Administrator
Hero Member
*****
Posts: 744


WWW
« Reply #2 on: November 09, 2007, 05:06:06 am »

Do you have multiple <?php ... ?> blocks or newlines before <?php tag?
Following could cause this. If not, send me the page source to look at.

Code:

<?php
echo "download would not work because of newline char before php opening tag";
?>


Code:
<?php
// some code here, first block
?>


<?php
echo "download would not work because of new line between php blocks";
?>

Logged
rb
Newbie
*
Posts: 3


« Reply #3 on: November 09, 2007, 08:15:33 am »

You were correct the <?php was preceeded by a line which caused the problem. 
Thanks so much for the utility and support.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC