Hello everone, I was wondering if there was any way of including the following php in a plugin and then including it in a template as a variable:
cotw_func_contest_num.php?do=sotw
As you can see it's not the entire file, just a do request. I tried this but got a 500 internal server error:
Anyone have any ideas as to how include partly php files in this manner??
Any info will be appreciated. Thanks for your time everyone.
cotw_func_contest_num.php?do=sotw
As you can see it's not the entire file, just a do request. I tried this but got a 500 internal server error:
PHP Code:
ob_start();
require_once('./intuitco/cotw/functions/cotw_func_contest_num.php?do=sotw');
$cotw_sotw_contests_number = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('COTW_SOTW',array('cotw_sotw_contests_number' => $cotw_sotw_contests_number));
Any info will be appreciated. Thanks for your time everyone.
Comment