Re: echo'ing a variable and cat'ing text
| From: | Adam Williams | Date: | Thu, 02 Mar 2006 18:18:12 +0000 |
| Subject: | Re: echo'ing a variable and cat'ing text | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231359@lists.php.net to get a copy of this message | ||
got it! i had to have my block of code look like this:
if ( $file = file ( $filename ) ) {
foreach ( $file as $line ) {
if ( $line != "" ) {
$line = trim($line);
echo ( $line . "@mdah.state.ms.us" );
echo "\n";
}
}
} else {
echo ( "Couldn't open $filename" );
}