Problen set variables in fopen
| From: | Hans-Peter Straub | Date: | Wed, 12 Jul 2000 19:16:24 +0000 |
| Subject: | Problen set variables in fopen | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-6230@lists.php.net to get a copy of this message | ||
Hello,
sorry i'm new to PHP and programming, but i have a simple question:
I do a
$template = fopen ("incdir/emplate.txt","r");
while (!feof($template)) {
$output=fgets($template,256) ;
$testmessage.=$output ;
}
and in the template.txt files there are some variables wrote down in the form:
-->> $variable
I want to set some values to this variables when while is running, but i only
get teh clear text "$variable" in output. How can i get changed this to set the
values of the vars to this??
Yours
Hans-Peter Straub
--
-------------------------------*
GKS I-NetPartner GmbH
Hans-Peter Straub
Seewiesenstrasse 12
D-73054 Eislingen
--
Phone: +49 7161 9849955
Fax: +49 7161 9849956
--
eMail: straub@i-netpartner.de
Web: http://www.i-netpartner.de
-------------------------------*
********************************
** Informieren Sie Sich über
** -->> GigaLan <<--
** das Funknetz im Filstal
** http://www.gigalan.de
********************************
-------------------------------*