Math Operator Problem?

From: Date: Mon, 09 Feb 2009 12:32:00 +0000
Subject: Math Operator Problem?
Groups: php.windows 
Request: Send a blank email to php-windows+get-29159@lists.php.net to get a copy of this message
Hi, I have a snippet of code as follows: while (!feof($fh2)) { $total_time=0; $lines= fgets($fh2); $count= strlen($lines); if ($count == 0) { //There are no lines } else { $total_time += $lines; } } What I am trying to do here is to increment the total_time value and have it display on the screen without changing the actual input file. However, when I tried to output the result on the screen, all I am getting is the same value as I have in the text file originally. Can anyone on the list please give me some insight on what I am doing wrong here? Thanks in advance. Alice _________________________________________________________________ All-in-one security and maintenance for your PC.  Get a free 90-day trial! http://www.windowsonecare.com/purchase/trial.aspx?sc_cid=wl_wlmail

« previous php.windows (#29159) next »