shubho,
The problem is because you have single quotes in your text.
If you take a look at how some of the writing is red and some is blue, you will see it's a quote escaping issue.
Try this:
<?
require("config.php");
$cont = <<<EOL
{header}
<h1>Frequently Asked Questions</h1>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr><td class="whitebox_topleft"><img src="http://www.%{s_domain}/%{s_dir}images/blank.gif" width="9" height="9" hspace="0" vspace="0" border="0" alt="" /></td><td class="whitebox" style="border-top: 1px solid #666666;"><img src="http://www.%{s_domain}/%{s_dir}images/blank.gif" width="9" height="9" hspace="0" vspace="0" alt="" /></td><td class="whitebox" width="9" style="border-top: 1px solid #666666; border-right: 1px solid #666666;"><img src="http://www.%{s_domain}/%{s_dir}images/blank.gif" width="9" height="9" hspace="0" vspace="0" alt="" /></td></tr><tr><td class="whitebox" width="9" style="border-left: 1px solid #666666;"><img src="http://www.%{s_domain}/%{s_dir}images/blank.gif" width="9" height="9" hspace="0" vspace="0" alt="" /></td><td class="whitebox">
<b>Who can Join?</b><br>
Anyone who have an alertpay account.If you don't have an alertpay account,you can sign-up for an free account.
<br><br>
<b>How do I join www.randomalertpay.com?</b><br>
Joining Is A Simple TWO Step Process!Simply click on the displayed Alertpay payment button at the bottom of this page and pay your $8 sponsorship fee to the verified RandomAlertpay sponsor. Sponsors are ALWAYS paid first, just like you will be!<br>
Follow through Alertpay back to here and you will be redirected to the account creation page where you will be asked to complete the setup by paying the administration fee of $6.<br>
Your account will be instantly activated, your id will start showing in rotation, and you will be able to login and plug your advertisements into the system.
<b>How do I make money?</b><br>
Once your sign-up process is completed,you will get a referral link.The referral link consist of your username and your alertpay account's email.<br>
You will be also provided to set-up your advertisment link and banner,which will rotate on the main page.You will get banner for your referral also.<br>
You will earn random $8 alertpay in your account as you post the your referral link or banner on fourms,blogs,message boards,groups etc.<br>
Remember,The more visitors you can bring to %{r_name}.com,the more random you will earn.
<b>What are the benfits for being a member?</b><br>
You will be provided a download link
of valuable digital items like e-books,tools,scripts,software-which worth $2,500.You will <br>
also get your advertisement links or banner on %{r_name}.com.
<b>Can I have more than one account?</b><br>
Yes, you may have more then one account.
<b>Can other people in my Household join?</b><br>
Yes, any others in your House, School, or Workplace can join, as long as they each have their own AlertPay email address.
<br><br>
<b>How do I will know that I am paid?</b><br>
Good Question!You will get a payment notification email from your payment processor.This payment notification is automatic.
<b>Is there any refund?</b><br>
No.Due to low fee for sponsor and admininstration process,It is not refundable.
<br><br>
<b>How much I can earn?</b><br>
There is no limit.The more visitor you bring to your referral link,the more chances to earn
<br><br>
<b>Is it legal?</b><br>
Offcourse,It is 100% legal.This is NOT a Autosurf, Multi-Level Marketing, Pyramid, Ponzi, Matrix or "Get Rich Quick" scheme.
<br><br>
</td><td class="whitebox" width="9" style="border-right: 1px solid #666666;"><img src="http://www.%{s_domain}/%{s_dir}images/blank.gif" width="9" height="9" hspace="0" vspace="0" alt="" /></td></tr><tr><td width="9" class="whitebox" style="border-left:1px solid #666666;border-bottom:1px solid #666666"><img src="http://www.%{s_domain}/%{s_dir}images/blank.gif" width="9" height="9" hspace="0" vspace="0" alt="" /></td><td class="whitebox" width="100%" style="border-bottom:1px solid #666666"><img src="http://www.%{s_domain}/%{s_dir}images/blank.gif" width="9" height="9" hspace="0" vspace="0" alt="" /></td><td width="9" class="whitebox_bottomright"><img src="http://www.%{s_domain}/%{s_dir}images/blank.gif" width="9" height="9" hspace="0" vspace="0" border="0" alt="" /></td></tr>
</table>
{footer}
EOL;
$content = output_content('', $cont);
$top = output_content("header");
$content = str_replace("{header}", $top, $content);
$bottom = output_content("footer");
$content = str_replace("{footer}", $bottom, $content);
echo $content;
?>
Either that, or for each single quote (') when using $variable = 'string'; add a backslash to what is intended as being a single quote, which is called escaping.
i.e.
$cont = 'Hello I am Mr. O\'reilly';
Best of Luck