5
I too have tried to include php below in a custom block. If I removed with php script enabled I'm sent back to the admin menu. If I leave it in and do a preview I see my block title and nothing else. The block doesn't show up.
include "./gallery/plugins/cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(6,1,2);
$objCpm->cpm_close();
?>
BTW - gallery is in my root directory not xoops