Ok,
I make a bug array, anywhere from 400 - 2000 items and could be more.
Then I go through around 5 loops, one in the next,
while(){
for(){
while(){
if(){
}
}
}
I also load each item from the array mentioned above (which are file pointers) into another array, 1 at a time,
like so:
foreach($filesearch as $this){
clearstatcache();
$fpath="$rpath$this";
$infile="NOPE";
if($infile=file($this)){
$done="NO";
$that=split(".",$this);
if($that[1]==$ftype[0] or $that[1]==$ftype[1] or $that[1]==$ftype[2] or $that[1]==$ftype[3] or $that[1]==$ftype[4] or $that[1]
==$ftype[5]){
and some things I dont want to show you here,
not big items, just if statments looking for spacific things in the file.
clearstatcache();
}
and do some things with 1 line of text from each.
It bombs with memory errors every time, so is there any way to clear the used memory so far? or something like that? Or am I just stuck...