On 6/8/06, Mayank Maheshwary <[EMAIL PROTECTED]> wrote:
$name = $_POST["filename"];
$lines = file($name);
$i = 0;
$len = sizeof($lines);
//echo $i;
while($i < $len) {
  //echo $lines[$i];
  $temp = $lines[$i];
  $temp = trim($temp);
  //echo $temp;
  if($temp1 == '--------------------------------------') {

This should be $temp, shoudn't it?

    echo $i;
    return $i;
  }
  else
    $i++;
}

Rabin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to