Re: echo'ing a variable and cat'ing text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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" );
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux