I'm using a while loop to get all the content from a folder,
But I need to specify a for loop somewhere to do a certain action when reached
a specific file in the folder..
so
> getting the content with
Code: Select all
while($folderEntry=$folder->read())> when reached file 8: do something
etc..
But whatever I try it's either looping the same file over and over or
looping the same file 10 times and then moves on to the next one.