Thread: wrong variable?
View Single Post
  #3 (permalink)  
Old 04-04-2008, 06:56 PM
KevinADC KevinADC is offline
Learning Programmer
 
Join Date: Jan 2007
Posts: 89
Rep Power: 6
KevinADC is on a distinguished road
Default Re: wrong variable?

He has already been told of this error on another forum, he posted this same question on 4 or 5 forums, probably school work.

This is stilll wrong:

Code:
for($i=0; $i=scalar(@file); $i++)
it should be:

Code:
for($i=0; $i < scalar(@file); $i++)
otherwise it will probably just go into an infinite loop
Reply With Quote