On Mon, 1 Dec 2003 00:16:07 +0300 zhuravlev alexander <[EMAIL PROTECTED]> wrote:
> Use eval. http://www.php.net/eval > > % cat temp.txt > Temperature $temp degree. > % cat temp.php > <?php > > $temp = '5'; > > $filename = "./temp.txt"; > $handle = fopen ($filename, "r"); > $code = fread ($handle, filesize ($filename)); > fclose ($handle); > print $code."<br>"; > eval("\$result = \"".addslashes($code)."\";"); > echo $result; > ?> > Thanks a lot. That is exactly what I hoped I could do. -- Ian Truelsen Email: [EMAIL PROTECTED] AIM: ihtruelsen Homepage: http://www.ihtruelsen.dyndns.org Signature key (742B740D) available at pgp.mit.edu
pgp00000.pgp
Description: PGP signature