i am running an program that increases the memory while executing each time... i am getting the links from the database and parsing for contents...
<?php
include "aa.php";
$ex="all_link";
$cd="crawled_link";
$sql="SELECT * FROM $ex";
$result=mysql_query($sql);
$count=mysql_num_rows($result);
$i=1;
$j=1;
$temp=0;
while($count > 0)
{
$sql="SELECT * FROM $ex where num='$i'";
$result=mysql_query($sql);
$rows=mysql_fetch_array($result);
$a=$rows['link'];
$sql="SELECT * FROM $cd where link='$a'";
$result1=mysql_query($sql);
$rows1=mysql_num_rows($result1);
flush();
if(!$rows1)
{
$cdurl=trim($rows['link']);
start_scan($cdurl);
}
else
{
}
$sql="SELECT * FROM $ex";
$result=mysql_query($sql);
$temp=mysql_num_rows($result);
$count=$temp-$i;
$i++;
flush();
}
mysql_close();
ilk defa yürütün bellek 4 MB olduğunu ve sonra 25o ve daha yukarı artar bunun dışında almak için herhangi bir yolu var olduğunu ....