ups, sorry
Código PHP:
include "config.php";
$text=file_get_contents('algo.txt');
$text = addslashes(htmlentities($text));
$text = nl2br($text);
echo $text;
$qry = "INSERT INTO datos VALUES
($text)";
$result = mysql_query($qry) or die(mysql_error());
echo "termino";