perhaps post a little more of the code, the balls up could be the combination of another bottleneck with this one
almostbob,
This is the complete code in the post of my form, please help me in solving this issue. the program is not getting redirected with large number of lines
here is the code you asked for
$list = file_get_contents($imgpath);
$listarray = array();
$listarray = explode("\n",$list);
$count_line = count($listarray);
$key = array();
$newline ='';
$store ='';
for($i =0; $i <= count($listarray) ; $i++)
{
if($i == count($listarray))
{
/*$fp = fopen($imgpath, 'w');
fwrite($fp, $store);
fclose($fp);*/
file_put_contents($imgpath,$store);
header("location: index.php");
}
$name = $listarray[$i];
// Replaces the Empty Line
$line = preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", '', $name);
$line = trim($line);
if($line !='')
{
// Apply URL
$line = link($line);
$fault =0;
$key[] = $line;
$store .= trim($line)."\r\n";
}
}
Regards