thank you, i fixed the problem another way, i went the plugin way, i create a plugin with global start the following inside:
PHP Code:
ob_start();
include('/path/to/file/');
$yourvariable = ob_get_contents();
ob_end_clean();
then i just added the variable to the template called by custom page. I guess my problem was that i didn't named the variable properly in the template, i dont remember, it works now, i had given up what i was doing because it was not working but after your post i just tried again and it worked. :alien: