[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] [EMAIL

[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 (option value=\$line\$line/option); } thanx for the help Dvdmandt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Did you try file(); ? -- // DvDmanDT MSN:

[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 'option value='.$lines[$i].''.$lines[$i].'/option'; -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com Tony [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] I'm new to

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 (option value=\$line\$line/option); } $lines = file ( $filename ); $size = sizeof ( $lines ); for ( $i = 0; $i $size; $i++ ) { echo ( 'option value=' .