Re: [PHP] Re: working with files

2004-01-28 Thread John Nichel
tony wrote: I'm new to php, and i tried file() no luck $lines = file('$filename'); foreach ($lines as $line_num => $line) { print ("$line"); } $lines = file ( "$filename" ); $size = sizeof ( $lines ); for ( $i = 0; $i < $size; $i++ ) { echo ( '' . $lines[$i] . '"' ); } http://us2.php.net/m

[PHP] Re: working with files

2004-01-28 Thread DvDmanDT
I use to do this: $lines=file($filename); $num_lines=count($lines); for($i=0;$i<$num_lines;$i++)echo ''.$lines[$i].''; -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Tony" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > I'm new to php, > and i tried file() no

[PHP] Re: working with files

2004-01-28 Thread tony
I'm new to php, and i tried file() no luck $lines = file('$filename'); foreach ($lines as $line_num => $line) { print ("$line"); } thanx for the help "Dvdmandt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Did you try file(); ? > > -- > // DvDmanDT > MSN: dvdmandt¤hotmail.co

[PHP] Re: working with files

2004-01-28 Thread DvDmanDT
Did you try file(); ? -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Tony" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > hi, > > i have problem with writing a reading to file > i want to write emails in files. like this > [EMAIL PROTECTED] > [EMAIL PROTECTED