Sorry if this has been posted before. i did a couple searches but no solutions came up.
my webhost is on a unix box and whenever i download files from the server via
PHP Code:
header("Content-Type: application/octet-stream");
header("Content-disposition: attachment;filename=test.txt");
// $array is a bunch of answers that users typed in; extracted from mysql
implode($array, ',');
i get
Code:
hello[]world,foobar
instead ofis there a way to make implode use \r\n than \n on strings that have returns?
Bookmarks