Re: [PHP] Can php read and than print file like it is

2001-04-03 Thread Daniel B I
try readfile() Daniel BI -- 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]

Re: [PHP] Can php read and than print file like it is

2001-04-03 Thread Christian Reiniger
On Monday 02 April 2001 18:37, you wrote: > Thank You Steve! > Here is my php > > $fillista = "fillista.xml"; > $fp = @fopen($fillista,r); > $count = fgets($fp,filesize($fillista)); use fread () -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt that a small g

Re: [PHP] Can php read and than print file like it is

2001-04-02 Thread Steve Werby
"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 o

Re: [PHP] Can php read and than print file like it is

2001-04-02 Thread Jan Grafström
Thank You Steve! Here is my php -- Regards Jan Steve Werby wrote: > "Jan Grafström" <[EMAIL PROTECTED]> wrote: > > I have a file with text on 17 rows and when I let php read it ,get > > filezise and than print I only get the first row. > > I want all rows exatly like it is in the file,

Re: [PHP] Can php read and than print file like it is

2001-04-02 Thread Steve Werby
"Jan Grafström" <[EMAIL PROTECTED]> wrote: > I have a file with text on 17 rows and when I let php read it ,get > filezise and than print I only get the first row. > I want all rows exatly like it is in the file, is it possible? > My file: > > Yes, it's possible. Post your code so we can see w

[PHP] Can php read and than print file like it is

2001-04-02 Thread Jan Grafström
Hi! I have a file with text on 17 rows and when I let php read it ,get filezise and than print I only get the first row. I want all rows exatly like it is in the file, is it possible? My file: some rows here Thanks in advance for all help I can get. Regards Jan -- PHP General Maili