[PHP] 0x0A after download using a PHP script

2003-07-12 Thread Alexander Vilens
Hi there. I had to use ob_clean() function to discard the contents of the output buffer which had this byte 0x0A. Thank you, Alex. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 0x0A after download using a PHP script (repost)

2003-07-12 Thread news.verizon.net
Hi there again. Sorry for reposting, did not realize outlook express put "News.Verizon.Net" on the "From" field. I've a script to download a file. The script adds the 1st byte 0x0A to the downloaded file no matter what I do: if ($file = fopen($path, 'rb')) { while(!feof($file) and (connec

[PHP] 0x0A after download using a PHP script

2003-07-12 Thread news.verizon.net
Hi. I've a script to download a file. The script adds the 1st byte 0x0A to the downloaded file no matter what I do: if ($file = fopen($path, 'rb')) { while(!feof($file) and (connection_status()==0)) { print(fread($file, 1024*8)); flush(); } } Even, when I comment ou