Hallo zusammen ,
Ich bin gerate dran mir ein kleines Webinterface zu basteln . um zb. Status der gpio usw anzuzeigen , im zb. status.php geht das auch alles super
jetzt stehe ich aber vor einen problem !
ich poste mal den teil des codes
[code=php]<?php
$fileToInclude = "home.php";
if (isset($_GET["site"]))
{
$site = $_GET["site"];
if (strlen($site) != 0)
{
if ($site == "home")
$fileToInclude = "home.php";
if ($site == "status")
$fileToInclude = "status.php";
}
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
<meta name="generator" content="Adobe GoLive" />
<title>Diskus-Tempel NBG Diskuszucht Nürnberg Webinterface</title>
</head>
<body>
<table width="995" border="0" cellspacing="2" cellpadding="0" height="908">
<tr>
<td align="left" valign="top" background="backr.jpg">
<table width="987" border="0" cellspacing="2" cellpadding="0" height="862">
<tr height="260">
<td width="179" height="260"></td>
<td align="left" valign="top" width="794" height="260">
<table width="771" border="0" cellspacing="2" cellpadding="0" height="128">
<tr height="19">
<td width="290" height="19"></td>
<td height="19"></td>
</tr>
<tr>
<td width="290"><strong><font size="+2"> WEBINTERFACE</font></strong></td>
<td align="center" valign="top"><br /><?php include ("aktuell.php"); ?>
</td>
</tr>
</table>
</td>
</tr>
<tr height="480">
<td align="center" valign="top" width="179" height="480">
<div align="center">
<a href="index.php?site=home.php">Home</a><br />
<br>
Webinterfae<br />
Start<br />
<strong>AquaPC</strong><br />
System Infos<br />
Licht<br />
Belüftung<br />
Co2<br />
Heizung<br />
Wasserwechsel<br />
<br />
Aqua-Solar<a href="index.php?site=aquapc"><br />
Solar Kollektor</a><br />
Wärme-Tausche <br />
Heizkörper<br />
<br />
<br />
<br />
<br />
<br />
<br />
</div>
</td>
<td align="left" valign="top" width="794" height="480">
<table width="624" border="0" cellspacing="2" cellpadding="0" height="570">
<tr>
<td align="center" valign="top"><? include($fileToInclude); ?></td>
</tr>
</table>
</td>
</tr>
<tr height="105">
<td align="center" valign="top" width="179" height="105"></td>
<td width="794" height="105"><font size="+2">© Diskus-Tempel-Nürnberg (http://www.diskus-tempel.myftp.org)</font></td>
</tr>
</table>
</td>
</tr>
</table>
<p></p>
</body>
</html>
[/php]
hier wenn ich die seite so auf einen free hoster liegen habe läd er zb. zum start home.php
aber auf meinen raspberry leider nicht ich habe php5 und apache2 drauf
bei der abfrage " ip-pi/index.php kommt stat die home datei eine leere seite und auch die links dazu klappen nicht
obwohl die datei home.php mit text vorhanden ist
hoffe ihr könnt mir helfen
lg sven