Does anyone know why the .txt file I get out of this blog has a ! after 980 characters? Is there a limitation in one of the lines??
Is it possible to avoid?
for ($i=0; $i <$num_results; $i++)
{
$row = mysql_fetch_array($result);
$cron = "$row[organisation];\r";
$fileinquestion = fopen ("/upload/portering.txt", "a+");
fwrite($fileinquestion, $cron);
fclose($fileinquestion);
}
$date_in_subject = date('d.m.y H:i:s', $dato);
$readfile = fgets ($fileinquestion);
mail('name@xxx.com', 'File is sent from server '.$date_in_subject, $readfile, $hdr);