I currently have the following:
if ($fp = fopen("$maildatfile", 'rb')) {
while (!feof($fp)) {
$maildat .= fread($fp, 1024);
}
fclose($fp);
} else {
fclose($fp);
echo " \$maildat not defined";
}
$finmaildat = addslashes($maildat);
The problem is that addslashes seems to remove the line breaks...
Hence the file that it loads into $maildat is one giant line.
How can I prevent that from happening?