MyBB Community Forums

Full Version: PHP file reading a template. Not working?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've made a PHP file with:
<?php 

define('IN_MYBB', 1); require "./global.php";

add_breadcrumb("Real Forums | Donate", "donate.php"); 

eval("\$html = \"".$templates->get("real_donate_page")."\";"); 

output_page($html);

?>

inside it.

And then in the Global Templates, I made a template named "real_donate_page" and inside that, I have all the proper coding for it to display the page.

It just doesn't work, tells me that the file doesn't exist on the server.

Not Found

The requested URL /donate.php was not found on this server.

Any idea on a fix for this?

PS: I'm trying to avoid using Page Manager.
Well, if the file isn't there, it doesn't matter what your code looks like xD...

So your problem is the file name / file location, not PHP at this point.