Sven
03-25-2002, 03:40 PM
I'd like to add a link to a php page (which will display some special behaviour rules) to the top links.
I tried this:
<?php
error_reporting(7);
require('./global.php');
include ("regeln.txt");
?> to achieve the page is displayed in the style the user clicking the link is using and to include the header and footer of the forums home page (I read somewhere global.php would do that automatically).
But it won't work :(
Can someone please give me an advice (I'm a php newbie) how to get it done?
The same happens if I try to use it as a template:
<?php
error_reporting(7);
$templatesused = "regeln";
require("./global.php");
eval("dooutput(\"".gettemplate("regeln")."\");");
?>
I'm getting a white page with the content of the template "regeln" but no style and no header and footer
I tried this:
<?php
error_reporting(7);
require('./global.php');
include ("regeln.txt");
?> to achieve the page is displayed in the style the user clicking the link is using and to include the header and footer of the forums home page (I read somewhere global.php would do that automatically).
But it won't work :(
Can someone please give me an advice (I'm a php newbie) how to get it done?
The same happens if I try to use it as a template:
<?php
error_reporting(7);
$templatesused = "regeln";
require("./global.php");
eval("dooutput(\"".gettemplate("regeln")."\");");
?>
I'm getting a white page with the content of the template "regeln" but no style and no header and footer