Re: file( ) function
| From: | Rabin Vincent | Date: | Wed, 07 Jun 2006 19:29:54 +0000 |
| Subject: | Re: file( ) function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237570@lists.php.net to get a copy of this message | ||
On 6/8/06, Mayank Maheshwary <mayank.maheshwary@gmail.com> 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?
Rabinecho $i; return $i;} else$i++;}