Search found 3 matches

by liminalhigh
Fri Aug 27, 2004 6:14 pm
Forum: PHP - Code
Topic: Is it possible to store eval() results in a variable?
Replies: 7
Views: 733

Sorry, but I don't get it. I'm not actually using echo anywhere... I am just trying to fit $variable into the mail() function:

for example:

Code: Select all

<?php
eval("\$strBody = \$template;");
mail ($strMailTo, $strSubject, $strBody, $strXHeaders);
?>
by liminalhigh
Fri Aug 27, 2004 5:50 pm
Forum: PHP - Code
Topic: Is it possible to store eval() results in a variable?
Replies: 7
Views: 733

Heyas,

I just tried this and for some reason it doesn't actually evaluate the code... just spits out the HTML/PHP from the db. :\
by liminalhigh
Fri Aug 27, 2004 5:27 pm
Forum: PHP - Code
Topic: Is it possible to store eval() results in a variable?
Replies: 7
Views: 733

Is it possible to store eval() results in a variable?

I have a mix of HTML/PHP stored in mysql as a template. I run eval() to populate the variables from the template. I can get it to display/view properly, however I want to take the actual final, evaluated HTML and email it to myself. It seems like all I would need to do is store the eval()'d code in ...