include php file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kovalsky
    Member
    • Nov 2016
    • 35
    • 5.2.x

    include php file

    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 ?

    PHP Code:
    <Files *.php>
    Order Deny,Allow
    Deny from all
    </Files
    Last edited by kovalsky; Mon 23 Jan '17, 11:56pm.
  • glennrocksvb
    Former vBulletin Developer
    • Mar 2011
    • 4021
    • 5.7.X

    #2
    Convert your PHP file into a frontend controller (located in /includes/frontend/controller) and then you can call the functions in it from a template.

    Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

    Comment

    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 74154

      #3
      You should not add your .htacces code above to the .htaccess file.
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment

      • kovalsky
        Member
        • Nov 2016
        • 35
        • 5.2.x

        #4
        Originally posted by Glenn Vergara
        Convert your PHP file into a frontend controller (located in /includes/frontend/controller) and then you can call the functions in it from a template.
        thank you

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...