Jump to content

Including a PHP file

Featured Replies

Posted

Hello,

I hope this is the right place to add this question.

I have a site which is part blog and part forum. 

I want to have a consistent header across the site and I'd like to pull in a php file (called header.php) into my InVision theme. 

I've created a test theme but I can't see to get it to pull in the php file into the Global Template

I've tried a normal PHP include and I've also seen a reference to use {insert="myfile"} but neither work.

Is there a way to do this?

My thanks in advance to anyone offering advice!

Rob

A workaround you can try is to place the file in your community folder, and then use the insert plugin in IPS, and then include it in your blog from the community folder.

The following might also work, but I cannot guarantee that it will:

{expression="include('/path/to/file.php')"}

 

  • Author

Thank you I will give it a try

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.