i am using iframe to render my app from my server. the problem is once i click on a link in my app, i am being redirected to my server. i mean, i remain in tha canvas page for a
try putting this code on top of your page:
ob_start();
This should solve the problem of 'headers already sent' error at least.