rrottman |
01-11-2004 07:52 PM |
I created a new, empty file. This is all and exactly what's in there:
PHP Code:
<?php
chdir("./forum");
error_reporting(E_ALL & ~E_NOTICE);
$globaltemplates = array('main');
require_once("./global.php");
eval('print_output("' . fetch_template('main') . '");');
?>
It's saved as index.php in the website root, while vB sits in /forum.
If I open http://www.mydomain.com in a browser, this is what I receive:
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
<BODY></BODY></HTML>
Any idea?
For troubleshooting I replaced the print_output with:
echo fetch_template('main');
and received an empty string, too.
Please help.
|