bionic
10-06-2003, 17:31
Guten Tag miteinander,
Ich beschäftige mich seit kurzem (wieder) mit PHP und schlage mich mit ein paar Newbie PHP Problem rum... Vielleicht könnt ihr mir ja helfen. Das Problem ist, dass der Server immer crashed und Errors am Laufband ausspuckt, wenn ich versuche das Script aufzurufen.
<?PHP
echo "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//DE-CH"> \n";
echo "<html> \n";
echo "<head> \n";
echo "<title>Titel2003</title> \n";
echo "</head> \n";
readfile ("../modules/style.php");
readfile ("../modules/javascript.php");
echo "<body topmargin=\"0\" leftmargin=\"0\" bgcolor=\""; echo $background; echo"\">";
echo "<div align=\"center\">";
echo "<center>";
echo "<table border=\"0\" width=\"";if ($nav < 1) {echo "600";} else {echo "700";} echo"\">";
echo "<tr>";
if ($nav < 1) {
echo "";
}
else {
readfile ("../modules/nav.php");
}
echo "<td width=600>";
echo "<table border=\"1\" width=\"600\" cellspacing=\"0\" height=\"0\" bordercolorlight=\"";echo $border1;echo "\" bordercolordark=\"";echo $border1;echo "\" bordercolor=";echo $border2;echo" bgcolor=";echo $bginside;echo">";
echo "<tr>";
echo "<td width=\"0\" height=\"60\" colspan=\"5\" bgcolor=\"#FFFFFF\">";
echo "</tr>";
echo "<tr valign=\"middle\">";
echo "<td height=\"18\" align=\"center\" bgcolor=\"";echo $menu1;echo "\" onMouseOver=\"cOn(this);\" onMouseOut=\"cOut(this);\" bordercolor=\"";echo $bordermenu;echo "\">";
echo "<a href=\"./index.php?section=home\">Home</a>";
echo "<td height=\"18\" align=\"center\" bgcolor=\"";echo $menu1; echo"\" onMouseOver=\"cOn(this);\" onMouseOut=\"cOut(this);\" bordercolor=\"";echo $bordermenu;echo "\">";
echo "<a href=\"./index.php?section=produkte\">Produkte</a>";
echo "<td height=\"18\" align=\"center\" bgcolor=\"";echo $menu1;echo "\" onMouseOver=\"cOn(this);\" onMouseOut=\"cOut(this);\" bordercolor=\"";echo $bordermenu;echo "\">";
echo "<a href=\"./index.php?section=about\">Über Uns</a>";
echo "<td height=\"18\" align=\"center\" bgcolor=\"";echo $menu1;echo "\" onMouseOver=\"cOn(this);\" onMouseOut=\"cOut(this);\" bordercolor=\"";echo $bordermenu;echo "\">";
echo "<a href=\"./index.php?section=faq\">FAQ</a>";
echo "<td height=\"18\" align=\"center\" bgcolor=\"";echo $menu1;echo "\" onMouseOver=\"cOn(this);\" onMouseOut=\"cOut(this);\" bordercolor=\"";echo $bordermenu;echo "\">";
echo "<a href=\"./index.php?section=kontakt\">Kontakt</a>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"0\" height=\"17\" colspan=\"5\" bgcolor=\"";echo $bgshow;echo "\" bordercolor=\"";echo $border1;echo "\">";
echo "<B><font size=\"3\" font color=\"";echo $fontshow;echo "\">";
if (!isset($section)){
echo "home";
}
else {
echo $section;
}
echo "</B>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"0\" height=\"0\" colspan=\"5\" valign=\"top\" align=\"left\" bgcolor=\"";echo $bginside;echo "\" bordercolor=\"";echo $border1;echo "\">";
$PATHTO = "../content";
if(eregi("^[a-z]+$", $section))
include("$PATHTO/$section.txt");
elseif(!isset($section))
include("$PATHTO/home.txt");
else
die("Section not found");
echo "<p></p>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"0\" height=\"22\" colspan=\"5\" bgcolor=\"";echo $bgshow;echo "\" bordercolor=\"";echo $border1;echo "\">";
readfile ("../modules/copyright.php");
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</center>";
echo "</div>";
echo "</body>";
echo "</html>";
?>
Wahrscheinlich habe ich sowieso den falschen Ansatz verfolgt, oder?
Vielen Dank für eure Hilfe, ich bin wirklich ein totaler N00b...
bionic
Ich beschäftige mich seit kurzem (wieder) mit PHP und schlage mich mit ein paar Newbie PHP Problem rum... Vielleicht könnt ihr mir ja helfen. Das Problem ist, dass der Server immer crashed und Errors am Laufband ausspuckt, wenn ich versuche das Script aufzurufen.
<?PHP
echo "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//DE-CH"> \n";
echo "<html> \n";
echo "<head> \n";
echo "<title>Titel2003</title> \n";
echo "</head> \n";
readfile ("../modules/style.php");
readfile ("../modules/javascript.php");
echo "<body topmargin=\"0\" leftmargin=\"0\" bgcolor=\""; echo $background; echo"\">";
echo "<div align=\"center\">";
echo "<center>";
echo "<table border=\"0\" width=\"";if ($nav < 1) {echo "600";} else {echo "700";} echo"\">";
echo "<tr>";
if ($nav < 1) {
echo "";
}
else {
readfile ("../modules/nav.php");
}
echo "<td width=600>";
echo "<table border=\"1\" width=\"600\" cellspacing=\"0\" height=\"0\" bordercolorlight=\"";echo $border1;echo "\" bordercolordark=\"";echo $border1;echo "\" bordercolor=";echo $border2;echo" bgcolor=";echo $bginside;echo">";
echo "<tr>";
echo "<td width=\"0\" height=\"60\" colspan=\"5\" bgcolor=\"#FFFFFF\">";
echo "</tr>";
echo "<tr valign=\"middle\">";
echo "<td height=\"18\" align=\"center\" bgcolor=\"";echo $menu1;echo "\" onMouseOver=\"cOn(this);\" onMouseOut=\"cOut(this);\" bordercolor=\"";echo $bordermenu;echo "\">";
echo "<a href=\"./index.php?section=home\">Home</a>";
echo "<td height=\"18\" align=\"center\" bgcolor=\"";echo $menu1; echo"\" onMouseOver=\"cOn(this);\" onMouseOut=\"cOut(this);\" bordercolor=\"";echo $bordermenu;echo "\">";
echo "<a href=\"./index.php?section=produkte\">Produkte</a>";
echo "<td height=\"18\" align=\"center\" bgcolor=\"";echo $menu1;echo "\" onMouseOver=\"cOn(this);\" onMouseOut=\"cOut(this);\" bordercolor=\"";echo $bordermenu;echo "\">";
echo "<a href=\"./index.php?section=about\">Über Uns</a>";
echo "<td height=\"18\" align=\"center\" bgcolor=\"";echo $menu1;echo "\" onMouseOver=\"cOn(this);\" onMouseOut=\"cOut(this);\" bordercolor=\"";echo $bordermenu;echo "\">";
echo "<a href=\"./index.php?section=faq\">FAQ</a>";
echo "<td height=\"18\" align=\"center\" bgcolor=\"";echo $menu1;echo "\" onMouseOver=\"cOn(this);\" onMouseOut=\"cOut(this);\" bordercolor=\"";echo $bordermenu;echo "\">";
echo "<a href=\"./index.php?section=kontakt\">Kontakt</a>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"0\" height=\"17\" colspan=\"5\" bgcolor=\"";echo $bgshow;echo "\" bordercolor=\"";echo $border1;echo "\">";
echo "<B><font size=\"3\" font color=\"";echo $fontshow;echo "\">";
if (!isset($section)){
echo "home";
}
else {
echo $section;
}
echo "</B>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"0\" height=\"0\" colspan=\"5\" valign=\"top\" align=\"left\" bgcolor=\"";echo $bginside;echo "\" bordercolor=\"";echo $border1;echo "\">";
$PATHTO = "../content";
if(eregi("^[a-z]+$", $section))
include("$PATHTO/$section.txt");
elseif(!isset($section))
include("$PATHTO/home.txt");
else
die("Section not found");
echo "<p></p>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"0\" height=\"22\" colspan=\"5\" bgcolor=\"";echo $bgshow;echo "\" bordercolor=\"";echo $border1;echo "\">";
readfile ("../modules/copyright.php");
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</center>";
echo "</div>";
echo "</body>";
echo "</html>";
?>
Wahrscheinlich habe ich sowieso den falschen Ansatz verfolgt, oder?
Vielen Dank für eure Hilfe, ich bin wirklich ein totaler N00b...
bionic