I'm running into this problem again but I don't know why it's not working. I tried \$var and {$var} but it either prints the variable or doesn't echo.
If you view the little code below, the variable $link prints out "<?php echo $school_links;?>" and not the school URL
VARS.PHP
//school vars
$school_links = "http://www.williamgreen.com/";
MAIN.PHP
<?php
include('vars.php');
//link to the specific school website
$link = '<' . sprintf("%c", 63) . 'php echo $school_links; ' . sprintf("%c", 63) . '>';
//link sentence
$letter_template = "If you would like to visit our school website, please visit $link";
include('website_template.php');
?>
WEBSITE_TEMPLATE.PHP
<?php
echo "Title of the school";
echo "$letter_template";
echo "Header of the school";
?>
Can a mod remove the '[RESOLVED]' on the thread title? Is there a way I can do it myself?