Re: what am I missing..interpolation?

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

 



On Sun, May 15, 2005 8:27 am, blackwater dev said:
> Thanks for the info but I tried it both ways and get this error:
>
> Parse error: parse error, unexpected T_FOR, expecting ',' or ';' in
> dogs.php(11) : eval()'d code on line 1
>
>
> On 5/15/05, Krid <krid@xxxxxxx> wrote:
>> Hi!
>> Try
>> eval("echo $string");

I dunno where the T_FOR came from, but you may need a ; after $string:

eval("echo $string;");

I'm also guessing maybe $string doesn't have what you think it has...

echo "string is: $string<hr />\n";

before you do the eval so you know what you are doing.

Or even:
$php = "echo $string;";
echo "evaluating: $php<hr />\n";
eval($php);

Now you'll see the PHP code you are trying to run, right before the error
message about it.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
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