Re: file( ) function

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

 



""Rabin Vincent"" <rabin@xxxxxx> escreveu na mensagem 
news:c928c27e0606071229s6728cad5l24c3cf89645ff7bb@xxxxxxxxxxxxxxxxx
> 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
 Else here´s putting you in loop.
>>     $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