"Jan Grafström" <[EMAIL PROTECTED]> wrote:
> Thank You Steve!
> Here is my php
> ----
> <?
>  $fillista = "fillista.xml";
>  $fp = @fopen($fillista,r);
>  $count = fgets($fp,filesize($fillista));
>  fclose($fp);
>  print "fillista=".$count;
> ?>

Your call to fgets() is only returning the first line of the input file.
Add the following line after it and $count will now have the first 2 lines:

$count .= fgets($fp,filesize($fillista));

If you construct your code to *loop* through the input file using fgets()
like the first example at http://www.php.net/manual/en/function.fgets.php
that I mentioned your problem will be solved.  Good luck!

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to