warning no2
#1
folgendes gibt mir der browser an:

Zitat:Warning: open_basedir restriction in effect. File is in wrong directory in /home/www/web71/html/h.php on line 145

Warning: Failed opening 'umfragen.php' for inclusion (include_path='.:/usr/share/php') in /home/www/web71/html/h.php on line 145

Zerogiven hat mir schon einen code gegeben, um eine adresse hinzubekommen, wie http://www.meinedomain.de/?goto=news. Dabei hab ich das problem!

PHP-Code:
<html>

<
head>
<
meta http-equiv="Content-Language" content="de">
<
meta name="GENERATOR" content="tsWebEditor (tswebeditor.net.tc - [URL]www.tswebeditor.tk[/URL])">
<
meta name="ProgId" content="FrontPage.Editor.Document">
<
meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<
title>Webmasterplanet</title>
</
head>
<
body bgcolor="#CCCCCC" link="#008000">

<
center>

<
table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" 

width="78%" id="AutoNumber1" height="347">
  <
tr>
    <
td width="100%" height="144" colspan="3">
    <
font color="#FFFFFF" face="Arial">
    <
span style="font-size: 9pt">
    <
img border="0" src="ban.jpg" width="778" height="153"></span></font></td>
  </
tr>
  <
tr>
    <
td width="100%" height="6" colspan="3"></td>
  </
tr>
  <
tr>
    <
td width="100%" height="1" colspan="3"></td>
  </
tr>
  <
tr>
    <
td width="100%" height="1" colspan="3"></td>
  </
tr>
  <
tr>
    <
td width="19%" height="303" valign="top">
    <
table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" 

id="AutoNumber2" height="2">
      <
tr>
                    <
td width="100%" height="18" colspan="2" bgcolor="#201D64" style="font-size: 8pt; color: 

#dddee6; font-family: Arial"
>
                    <
font face="Arial" style="font-size: 9pt" color="#FFFFFF">+ Home</font></td>
                  </
tr>
      <
tr>
                    <
td width="12%" height="66" valign="top" bgcolor="#1C5A7E" style="font-size: 8pt; color: 

#dddee6; font-family: Arial"
>&nbsp;</td>
                    <
td width="103%" height="66" valign="top" bgcolor="#1C5A7E" style="font-size: 8pt; color: 

#dddee6; font-family: Arial"
>
                    <
a href="?section=index">Home</span></a><br>
                    <
a href="?section=guestbook">Gästebuch</a><br>
                    <
a href="?section=about">About</a><br>
                    <
a href="?section=links">Links</a><br>
                    <
a href="?section=kontakt">Kontakt</a><br>
                    <
a href="?section=impressum">Impressum</a></span></font></td>
                  </
tr>
      <
tr>
                    <
td width="100%" height="18" colspan="2" bgcolor="#201D64" style="font-size: 8pt; color: 

#dddee6; font-family: Arial"
>
                    <
font color="#FFFFFF">
                    <
span style="font-size: 9pt">+ 
                    
Programmieren</span></font></td>
                  </
tr>
      <
tr>
                    <
td width="16%" height="46" valign="top" bgcolor="#1C5A7E" style="font-size: 8pt; color: 

#dddee6; font-family: Arial"
>&nbsp;</td>
                    <
td width="103%" height="46" valign="top" bgcolor="#1C5A7E" style="font-size: 8pt; color: 

#dddee6; font-family: Arial"
>
                    <
font color="#FFFFFF">
                    <
span style="font-size: 9pt"><a href="?section=hilfen">Hilfen</a> <br>
                    <
a href="?section=scripte">Scripte</a> <br>
                    <
a href="http://www.webmasterplanet.sunsonic.de/wbboard">Webmaster.Board</a> </span>
                    </
font>
                    </
td>
                  </
tr>
      <
tr>
                    <
td width="100%" height="18" bgcolor="#201D64" style="font-size: 8pt; color: #dddee6; 

font-family: Arial" 
colspan="2">
                    <
font color="#FFFFFF">
                    <
span style="font-size: 9pt">+ Tutorial</span></font></td>
                  </
tr>
      <
tr>
                    <
td width="12%" height="31" valign="top" bgcolor="#1C5A7E" style="font-size: 8pt; color: 

#dddee6; font-family: Arial"
>&nbsp;</td>
                    <
td width="103%" height="31" valign="top" bgcolor="#1C5A7E" style="font-size: 8pt; color: 

#dddee6; font-family: Arial"
>
                    <
font color="#FFFFFF">
                    <
span style="font-size: 9pt">
                    <
a href="?section=tutuebersicht">Übersicht</a> <br>
                    <
a href="?section=schreiben">schreiben</a>
                    </
span>
                    </
font>
                    </
td>
                  </
tr>
      <
tr>
                    <
td width="100%" height="18" colspan="2" bgcolor="#201D64" style="font-size: 8pt; color: 

#dddee6; font-family: Arial"
>
                    <
font color="#FFFFFF">
                    <
span style="font-size: 9pt">+ 
                    
Interaktiv</span></font></td>
                  </
tr>
      <
tr>
                    <
td width="12%" height="16" valign="top" bgcolor="#1C5A7E" style="font-size: 8pt; color: 

#dddee6; font-family: Arial"
>&nbsp;</td>
                    <
td width="103%" height="16" valign="top" bgcolor="#1C5A7E" style="font-size: 8pt; color: 

#dddee6; font-family: Arial"
>
                    <
font color="#FFFFFF">
                    <
span style="font-size: 9pt"><a href="?section=umfragen">Umfragen</a></span></font></td>
                  </
tr>
      <
tr>
                    <
td width="100%" height="18" colspan="2" bgcolor="#201D64" style="font-size: 8pt; color: 

#dddee6; font-family: Arial"
>
                    <
font color="#FFFFFF">
                    <
span style="font-size: 9pt">+ 
                    
Partner</span></font></td>
                  </
tr>
      <
tr>
                    <
td width="12%" height="54" bgcolor="#1C5A7E" style="font-size: 8pt; color: #dddee6; 

font-family: Arial"
>&nbsp;</td>
                    <
td width="103%" height="54" bgcolor="#1C5A7E" valign="top" style="font-size: 8pt; color: 

#dddee6; font-family: Arial"
>
                    <?
php
                    
include("partner.php");
                    
?>
                    </td>
                  </tr>
      </table>
    </td>
    <td width="1%" height="303">&nbsp;</td>
    <td width="80%" height="303" valign="top" align="left" bgcolor="#1C5A7E">
    <p>
    <?php
switch($section) {
case 
"home":
$path "index.php";

case 
"guestbook":
$path "gbook/index.php";

case 
"about":
$path "about.php";

case 
"links":
$path "links.php";

case 
"kontakt":
$path "kontakt.php";

case 
"impressum":
$path "impressum.php";

case 
"hilfen":
$path "hilfen.php";

case 
"scripte":
$path "scripte.php";

case 
"tutuebersicht":
$path "index.php";

case 
"schreiben":
$path "schreiben.php";

case 
"umfragen":
$path "umfragen.php";
}
    include(
$path);
    
?>
    </td>
  </tr>
</table>
</center>

</body>
</html> 

wär für hilfe dankbar!
  Zitieren
#2
Befinden sich auch alle .php Dateien im selben verzeichniss wie die h.php (ich denke die heißt so)?
  Zitieren
#3
also ich hab nur probeweise die impressum.php reingestellt um zu probieren ob es geht. Logischerweise kann man dann auch nur den link impressum anklicken und dabei erscheint der fehler. Rechte hab ich auch gesetzt, alls das überhaupt nötig war...
  Zitieren
#4
Du hast die Impresssum geklickt aber der Fehler war das umfrage.php nicht gefunden wurde? :äh:
  Zitieren
#5
*lol*
schau hier: *klick*
  Zitieren
#6
Erstell doch mal eine Datei mit dem namen umfragen.php :grübel:
  Zitieren
#7
umfragen hat damit erstmal gar nix zu tun. Da wollt ich einfach durch eine datei die partner hinzufügen und durch include dan reinmachen, also erstmal ignorieren.
Die Warnings im vontent-bereich sind meine probleme....
  Zitieren
#8
open_basedir Redirection Fehler sind eine "beliebte Spezialität" insbesondere bei NUKE-Systemen... von diesem Fehler leben ganze Foren... Big Grin

Er tritt vor allem gerne auf, wenn eine zu includende Datei sich nicht an dem Ort (Verzeichnis) befindet, wo die includende Datei sie gerne hätte... Big Grin

Schau mal auf www-netz-id.de und klicke dort das Forum an. In die Suche gibst du dann "open_basedir" ein. Weiss jetzt nicht, ob du ein NUKE betreibst... ist aber auch egal. Das Prinzip ist das selbe.

Open_Basedir hat schon manchen Webmaster um den Verstand gebracht... :gaga:

Manchmal liegt es auch daran, dass eine Datei schlichtweg nicht hochgeladen wurde. Auch daran mal denken...
  Zitieren
#9
versuch mal die $path strings umzuschreiben von

$path = "index.php";
in
$path = "\"index.php\"";
Write this on my gravestone, write this right on my grave, "To whisky and women, here lies a poor slave".

[Bild: 10_en_btn.gif]

Computer- und Mediensicherheit - FH Hagenberg
Hagenberger Kreis zur Förderung der digitalen Sicherheit
Security Forum
  Zitieren
#10
der fehler liegt auch immer in include:

PHP-Code:
<html>

<
head
<
title>Weg mit den Frames ;-)</title
</
head

<
body link="#FFFFFF"

<
table align="center" width="80%"
<
tr
<
td

<!-- Die 
Linke Seitealso wo das Menü ist --> 
<
table bgcolor="#33CCFF" border="1" bordercolor="#000000" width="250"
<
tr><td><a href="?goto=news">Link1</a></td></tr
<
tr><td><a href="?goto=downloads">Link2</a></td></tr
</
table
<!-- 
Linke Tabelle ende --> 

</
td
<
td width="20"

</
td
<
td bgcolor="#33CCFF" width="600"

<?
php 
switch($goto) {
case 
"news":

$path "\"news.html\"";

case 
"downloads":

$path "\"news.html\"";
}

include(
$path); // <----- Warning: main(): Failed opening '' for inclusion (include_path='.;c:\php4\pear') in d:\justus\htdocs\test\h.php on line 37
?> 

</td> 
</table> 

</body> 
</html> 

@ kickedinthehead: nö, funzt leider auch net
  Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste