Hi there, I quite recently bought a linode, and was wondering how to get this script working...
Here is the PHP code
Code:
<?
set_time_limit(0);
mysql_connect("localhost","root","[myrootpassword]");
mysql_select_db("db1");
$words=file("words.txt");
foreach ($words as $word) {
$word = mysql_escape_string(rtrim($word));
$query = mysql_query("INSERT INTO `des` (word) VALUES ('{$word}')");
}
echo "worked.";
?>
For every line in there, it's suppose to add it into the database. It works for small files, however, the file I am working with is around 2gb
So I updated the memory allocation in php.ini yet, when I run this I get a blank page... any suggestions?
Thank in advance,
a new user