Also...
ich habe eine Main Page die verweisst auf eine andere php und die wiederrum auf eine php.. doch das erste mal include funktioniert, doch danach geht es nicht mehr... hier mal die pages..
Main_Games.php
<BODY BGCOLOR=#212421 >
<table border="0" width="549" id="table1">
<tr>
<td height="38" colspan="3"><img border="0" src="images/image_06.gif" width="589" height="36"></td>
</tr>
<tr>
<td background="images/image_11.gif" width="8" height="57"> </td>
<td width="577" height="57" valign="top">
<span class="style9">Games:</span><br><?php include '../phgstats/index.php' ?>
</td>
<td background="images/image_11.gif" width="8" height="57"> </td>
</tr>
<tr>
<td height="45" colspan="3"><img border="0" src="images/image_30.gif" width="589" height="43"></td>
</tr>
</table>
dann die /phgstats/index.php
define('PHGDIR', './');
$use_file = basename(__FILE__);
$use_bind = '?';
require_once (PHGDIR . 'settings/style.inc.php');
echo '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>' . $btitle . '</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background: ' . $bg_color . ';
font-family: verdana, arial, sans-serif;
font-size: 11pt;
}
A:link, A:visited, A:active {
text-decoration: underline;
color: ' .$color . ';
}
A:hover {
text-decoration: underline;
color: ' . $h_color . ';
}
table {
font-family: verdana, arial, sans-serif;
font-size: 10pt;
color: ' . $t_color . ';
background-color: ' . $bg_color . ';
}
td {
color: ' . $td_color . ';
background-color: ' . $tdb_color . ';
}
td.auth {
color: ' . $td_color . ';
background-color: ' . $bg_color . ';
}
th {
color: ' . $th_color . ';
background-color: ' . $thb_color . ';
}
-->
</style>
</head>
<body>
';
require_once (PHGDIR . 'main/phgstats.inc.php');
echo '
</body>
</html>';
?>
und dann noch die settings/style.inc.php
<?php
// html variables
$btitle = 'phgstats - game server status';
// html colors:
$color = '#ccc';
$bg_color = '#4E5F71';
$t_color = '#ccc';
$tb_color = '#4E5F71';
$td_color = '#ccc';
$tdb_color = '#4B5B6E';
$th_color = '#ffffff';
$thb_color = '#3B4C5C';
$h_color = '#ff0000';
?>
Also eintlich nix wildes, aber er macht es einfach nicht...
wenn ich aber http://localhost/phgstats/ aufrufe, funktioniert es tadelos, nur bei includen will es nicht, warum ?!
mfg
Tossi