Re: file( ) function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/8/06, Mayank Maheshwary <mayank.maheshwary@xxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux