Re: [PHP] getting an variable value from an array entry

2003-11-30 Thread Curt Zirzow
* Thus wrote zhuravlev alexander ([EMAIL PROTECTED]): > > % cat temp.txt > Temperature $temp degree. > % cat temp.php > > $temp = '5'; > > $filename = "./temp.txt"; > $handle = fopen ($filename, "r"); > $code = fread ($handle, filesize ($filename)); > fclose ($

Re: [PHP] getting an variable value from an array entry

2003-11-30 Thread Ian Truelsen
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 > > $temp = '5'; > > $filename = "./temp.txt"; > $handle = fopen ($filename, "r"); >

Re: [PHP] getting an variable value from an array entry

2003-11-30 Thread zhuravlev alexander
On Sun, Nov 30, 2003 at 01:04:08PM -0800, Ian Truelsen wrote: > On Sun, 30 Nov 2003 21:44:50 +0100 > "Bronislav Klucka" <[EMAIL PROTECTED]> wrote: > > > The temperature is $$temp > > > Unfortunately, that is not working for me. I have tried changing it in > the text file, but that just outputs $$

Re: [PHP] getting an variable value from an array entry

2003-11-30 Thread Ian Truelsen
On Sun, 30 Nov 2003 21:44:50 +0100 "Bronislav Klucka" <[EMAIL PROTECTED]> wrote: > The temperature is $$temp > Unfortunately, that is not working for me. I have tried changing it in the text file, but that just outputs $$temp instead of the value of $temp. What I have is the array words, for whic

RE: [PHP] getting an variable value from an array entry

2003-11-30 Thread Bronislav Klucka
The temperature is $$temp Brona > -Original Message- > From: Ian Truelsen [mailto:[EMAIL PROTECTED] > Sent: Sunday, November 30, 2003 9:27 PM > To: php > Subject: [PHP] getting an variable value from an array entry > > > I am trying to do the following: > > I have a text file to read i