I am working with my php new site. Here I want to write an html page using php file write code. In this I used file_get_contents. E.g. see below
$page_old.="<table width='1051' border='0' cellspacing='0' cellpadding='0'>";
$page_old.="<tr><td height='50' class='tittle'>Test</td></tr>";
$page_old.="<tr><td class='content'>My content Body</td></tr></table></td></tr>";
$page_old.=file_get_contents('../contents/footer.php');
fwrite($fp_old,$page_old);
fclose($fp_old);
My footer page contains some php code see below
<td colspan="4"><a href="../more-products.php?feat1_id=YlX>PdRf" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image49','','../images/Kluz_usa_s_over_18.jpg',1)"><img src="../images/Kluz_usa_s_18.jpg" name="Image49" width="276" height="162" border="0" alt="Universal Laser Systems VersaLASER " title="<?=$test_vra?>" ></a></td>
I want to assign the title, alt src value from a php variable. But the result is not correct. E.g. my title tag showing
How I display the actual content from that php variable
Thanks in advance