i have written this PHP code:
<?php
$host = "localhost";
$username = "user";
$password = "pass";
$db = "database";
mysql_connect($host,$username,$password) or die(mysql_error());
mysql_select_db($db) or die(mysql_error());
mysql_close;
$lines = explode("\n", file_get_contents("textfile.txt"));
foreach($lines as $pass => $password)
{
$string = trim($password);
$md5hash = md5($string);
$sha1hash = sha1($string);
$res = mysql_query("INSERT INTO `md5` VALUES ('', '$password', '$md5hash', '$sha1hash')") or die(mysql_error());
}
?>
but i still get
Allowed memory size of 734003200 bytes exhausted
Fatal error: Out of memory (allocated 262144) (tried to allocate 15696126973 bytes)
i tried many solutions but that doesnt help! so is there any way to fix this problem by changing or add something to the PHP code ..
thanks