Re: Re: working with files

From: Date: Wed, 28 Jan 2004 20:47:41 +0000
Subject: Re: Re: working with files
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-176120@lists.php.net to get a copy of this message
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="' . $lines[$i] . '">' . $lines[$i] . '"</option>' ); } http://us2.php.net/manual/en/ref.filesystem.php -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#176120) next »