MyBB Community Forums

Full Version: How to include a php file?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'd like to include a php file on my forum, it's a counter, and since my forum gets more views than the actual site, it'd be good to place it on the site.
The only problem is either way I know how to do it does not work.
<?php
include("/home/jammin2/public_html/scripts/counts.php");
?>
That causes it not to show up at all.

And..
include("/home/jammin2/public_html/scripts/counts.php");
This causes it to only write that.

Note: This is all in the header file for the style.
To put PHP script in template, you need this plugin:

http://community.mybboard.net/thread-31860.html
Thanks for that. Smile