So I installed APC and i all of the sudden my for loops only run once and increment the value then stops.
I dont get what's going on, it worked fine before APC was installed.
Any Suggestions?
EDIT:  I managed to narrow it down to the increment. for some reason if I have an array let's say string[],
and have the for loop list through the values like with  string[$i]
It only does it for the first one, I can manually echo/print out the array elements to check if the array is the problem but all elements have the appropriate data/values.
EDIT #2:
Well the code looks something like (it scrapes a page for images and gets some data from it):
$str = explode('<div class="images" align="center">',$str);
for($i=1;$i<11;$i++){
  $url3 = $str[$i];
  $url3 = extstr3($url3,'class="filename">','</div>');
  $urlname = extstr3($url3,'<a href="','</a>');
  $name = extstr3($urlname,'target="_blank">','.jpg');
  $url3 = extstr3($url3,'<a href="','" target="_blank">');
  $name = str_replace ('_', ' ', $name);
 .
 .
 .