Announcement

Collapse
No announcement yet.

Need to include part of a php file as a plugin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Steve Machol
    replied
    You should be asking this over at www.vbulletin.org.

    Leave a comment:


  • equinoxworld
    started a topic Need to include part of a php file as a plugin

    Need to include part of a php file as a plugin

    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:

    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)); 
    Anyone have any ideas as to how include partly php files in this manner??

    Any info will be appreciated. Thanks for your time everyone.

Related Topics

Collapse

  • kovalsky
    include php file
    by kovalsky
    How I can to include myfile.php from my server and display content from footer?

    it live from public_html/kovalsky_inc/myfile.php

    I should to add .htaccess file ?

    ...
    Tue 24th Jan '17, 12:38am
Working...
X