I would use an ajax call to the following script.
$allowedfuncs = array([allowed function calls])
if(in_array($_get['funccall'], $allowedfuncs))
{
$func = $_get['funccall'];
$output = $func(); // This calls $_get['funccall']()
echo $output;
}
else
{
exit();
}
/*
functions go here
*/
//Or something along those lines. Don't see a need for an iframe.
Last edited by peter_budo; Jun 16th, 2008 at 8:51 am. Reason: Keep It Organized - please use [code] tags