php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2009

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 28.06.2009, 18:43  
Neuer Benutzer
 
Registriert seit: 01.06.2009
Beiträge: 11
N@tur3 befindet sich auf einem aufstrebenden Ast
Standard include problem ?

Hab ein kleines Problem mit dem includen von einen NEWS script hier sind die scripts vieleicht findet ihr ja den fehler ich finde nix

DAS IST DER FEHLER AUF MEINER SEITE
Zitat:
Warning: include(includes/smilies.php) [function.include]: failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/maikbraun/include/news/includes/function.php on line 8

Warning: include() [function.include]: Failed opening 'includes/smilies.php' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/maikbraun/include/news/includes/function.php on line 8

Warning: file_get_contents(design/standart/index_body.tpl) [function.file-get-contents]: failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/maikbraun/include/news/includes/function.php on line 16
Ungültiger Design Ordner / Pfand zum Ordner wurde nicht gefunden.

der code sieht so aus..:

PHP-Code:
<body>
<div align="center">
<table width="1198" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td height="110" colspan="5" valign="top" bordercolor="#999999"><img src="img/header.jpg" alt="header" width="1194" height="100" border="5" /></td>
  </tr>
  <tr>
    <td width="205" height="79"></td>
    <td width="156"></td>
    <td width="557" valign="top"><table width="100%" height="79" border="3" cellpadding="0" cellspacing="0" bordercolor="#999999" bgcolor="#000000">
        <!--DWLayoutTable-->
        <tr>
          <td width="21" height="73" valign="top"><img src="img/werbung.gif" alt="werbung" width="21" height="71" /></td>
          <td width="530" valign="top" bordercolor="#999999"><!--DWLayoutEmptyCell-->&nbsp;</td>
        </tr>
      </table></td>
    <td width="82"></td>
    <td width="205"></td>
  </tr>
  <tr>
    <td height="503" valign="top"><table width="100%" height="456" border="4" cellpadding="0" cellspacing="0" bordercolor="#999999" bgcolor="#000000">
        <!--DWLayoutTable-->
        <tr>
          <td width="195" height="102" valign="top"><img src="img/navi2.jpg" alt="navi2" width="195" height="100" /></td>
        </tr>
        <tr>
          <td height="24" align="center" valign="middle"><img src="img/navi.jpg" alt="NAvi" width="195" height="21" align="middle" /></td>
        </tr>
        <tr>
          <td height="23" valign="top"><a href="index.php?seite=home" class="nav"><img src="img/home.jpg" alt="home" width="195" height="21" border="0" /></a></a></td>
        </tr>
        <tr>
          <td height="23" valign="top"><a href="index.php?seite=news"><img src="img/news.jpg" alt="news" width="195" height="21" border="0"></a></td>
        </tr>
        <tr>
          <td height="23" valign="top"><a href="index.php?seite=aboutme"><img src="img/aboutme.jpg" alt="aboutme" width="195" height="21" border="0" /></a></td>
        </tr>
        <tr>
          <td height="23" valign="top"><a href="templates/default.htm" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event, menu1, '96px')" onmouseout="delayhidemenu()/>"/a><img src="img/maps.jpg" alt="maps" width="195" height="21" border="0" align="absmiddle" /></a></td>
        </tr>
        <tr>
          <td height="23" valign="top"><img src="img/projekte.jpg" alt="projekte" width="195" height="21"></td>
        </tr>
        <tr>
          <td height="23" valign="top"><img src="img/tutorials.jpg" alt="tutorials" width="195" height="21"></td>
        </tr>
        <tr>
          <td height="23" valign="top"><img src="img/download.jpg" width="195" height="21" alt="download"></td>
        </tr>
        <tr>
          <td height="23" valign="top"><img src="img/forum.jpg" alt="forum" width="195" height="21"></td>
        </tr>
        <tr>
          <td height="23" valign="top"><a href="templates/gaestebuch/gaestebuch/index.php"><img src="img/gaestebuch.jpg" alt="gaestebuch" width="195" height="21" border="0"></a></td>
        </tr>
        <tr>
          <td height="23" valign="top"><img src="img/kontakt.jpg" alt="kontakt" width="195" height="21"></td>
        </tr>
        <tr>
          <td height="139">&nbsp;</td>
        </tr>
        
    </table></td>
    <td>&nbsp;</td>
    <td valign="top"><table width="100%" border="4" cellpadding="0" cellspacing="0" bordercolor="#666666">
        <!--DWLayoutTable-->
        <tr>
          <td width="551" height="494" valign="top" bgcolor="#000000"><div align="left">
            <?php   
switch (isset($_GET['seite']) ? $_GET['seite'] : '') { 
    case 
"aboutme":
        include (
$_SERVER['DOCUMENT_ROOT']."/templates/about_me.php");
        break;
    case 
"download":
        include (
$_SERVER['DOCUMENT_ROOT']."/templates/download.php");
        break;
    case 
"maps":
        include (
$_SERVER['DOCUMENT_ROOT']."/templates/maps/start.php");
        break;
    case 
"mb_crazyjump":
        include (
$_SERVER['DOCUMENT_ROOT']."/templates/maps/coduo/map1.php");
        break;
    case 
"mb_haus":
        include (
$_SERVER['DOCUMENT_ROOT']."/templates/maps/coduo/map2.php");
        break;
    case 
"mb_pool_day":
        include (
$_SERVER['DOCUMENT_ROOT']."/templates/maps/coduo/map3.php");
        break;
    case 
"mb_swim":
        include (
$_SERVER['DOCUMENT_ROOT']."/templates/maps/coduo/map4.php");
        break;
    case 
"mb_nature_one":
        include (
$_SERVER['DOCUMENT_ROOT']."/templates/maps/coduo/map5.php");
        break;
    case 
"kontakt":
        include (
$_SERVER['DOCUMENT_ROOT']."/templates/kontakt/kontakt.php");
        break;
    case 
"coduo":
        include (
$_SERVER['DOCUMENT_ROOT']."/templates/maps/coduo/start.php");
        break;
    case 
"cod4":
        include (
$_SERVER['DOCUMENT_ROOT']."/templates/maps/cod4/start.php");
        break;
    case 
"cod5":
        include (
$_SERVER['DOCUMENT_ROOT']."/templates/maps/cod5/start.php");
        break;
    case 
"impressum":
        include (
$_SERVER['DOCUMENT_ROOT']."/templates/team/impressum/impressum.php");
        break;
    case 
"news":
        include (
$_SERVER['DOCUMENT_ROOT']."/include/news/index.php");
        break;
        
   default:
   case 
"home":
        include (
$_SERVER['DOCUMENT_ROOT']."/templates/home.php");
        break;

?>
            &nbsp;</div></td>
        </tr>
        <!--DWLayoutTable-->
      </table></td>
    <td>&nbsp;</td>
    <td valign="top"><table width="100%" border="4" cellpadding="0" cellspacing="0" bordercolor="#999999" bgcolor="#000000">
        <!--DWLayoutTable-->
        <tr>
          <td width="195" height="23" valign="top"><img src="img/shoutbox.jpg" alt="shout" width="195" height="21" border="0" align="middle"></td>
        </tr>
        <tr>
          <td height="271" valign="top"><p>
            <?php require_once('shoutbox.php'); ?>

            </p>          </td>
        </tr>
        <tr>
          <td height="201">&nbsp;</td>
        </tr>
        
    </table></td>
  </tr>
  <tr>
    <td height="229">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="62" colspan="5" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#999999">
      <!--DWLayoutTable-->
      <tr>
        <td width="1205" height="62" valign="top"><dl>
          <dt class="footer">
            <div align="center"><a href="index.php?seite=impressum">Impressum</a> | Kontakt | Hilfe | Team | Admin</div>
          </dt>
            <dd class="Stil25">&nbsp;          </dd>
          </dl></td>
        </tr>
    </table></td>
  </tr>
</table>
</div>
</body>
</html>
und die datei functions.php sieht so aus:

PHP-Code:
<?php
$abfrage_config 
"SELECT * FROM ".$dbsql."config";
$ergebnis_config = @mysql_query($abfrage_config) or die (mysql_error());
while(
$sqlconfig = @mysql_fetch_object($ergebnis_config))
{
    
$config["$sqlconfig->name"] = $sqlconfig->value;
}
include(
$config["root_ordner"].'includes/smilies.php');
$ip $_SERVER['REMOTE_ADDR'];    

function 
style($datei,$template)
{
global 
$config;
global 
$dbsql;

$index_body file_get_contents($config["root_ordner"].'design/'.$config["design_ordner"].$datei.'.tpl') or die ("Ungültiger Design Ordner / Pfand zum Ordner wurde nicht gefunden.");

$style explode("<!-- $template -->"$index_body);
$style explode("<!-- /$template -->"$style[1]);
$style $style[0];

$style ereg_replace("{root_ordner}"$config["root_ordner"], $style);
$style ereg_replace("{design_ordner}"$config["design_ordner"], $style);
$style ereg_replace("{webseiten_titel}"$config['webseiten_titel'], $style);
$style ereg_replace("{version}"$config['version'], $style);
$style ereg_replace("{smilies_box}"smilies_box(4), $style);

$style ereg_replace("{achiv_link}"$config['achiv_link'], $style);
$style ereg_replace("{mehr_lesen}"$config['mehr_lesen'], $style);


$style ereg_replace("{kurzform_smilies_box}"smilies_box(4"news_kurzform_text"), $style);

    if (
$config['smilies'])
    {
        
$style ereg_replace("{smilies}"'<a href="#" onclick="javascript:window.open(\''.$config["root_ordner"].'smilies.php\',\'popup\', \'height=300, width=300, scrollbars=yes\');" title="BBcode" target="_self">an</a>'$style);
    }
    else
    {
        
$style ereg_replace("{smilies}""aus"$style);
        
$style style_bearbeiten("smilies_box"""$style);
    }
    @eval (
style);
    if (
$config['bbcode'])
    {
        
$style ereg_replace("{bbcode}"'<a href="#" onclick="javascript:window.open(\''.$config["root_ordner"].'bbcode.php\',\'popup\', \'height=300, width=500, scrollbars=yes\');" title="BBcode" target="_self">an</a>'$style);
    }
    else
    {
        
$style ereg_replace("{bbcode}""aus"$style);
        
$style style_bearbeiten("bbcode_box"""$style);
    }
    if (!
$config['captcha'])
    {
     
$style style_bearbeiten("captcha"""$style);
    }
    if (!
$config['komentare'])
    {
     
$style style_bearbeiten("news_komentare"""$style);
    }
    if (!
$config['autor_name_anzeigen'])
    {
     
$style style_bearbeiten("autor_name_anzeigen"""$style);
    }
    if (!
$config['zeit_anzeigen'])
    {
     
$style style_bearbeiten("zeit_anzeigen"""$style);
    }
    if (!
$config['datum_anzeigen'])
    {
     
$style style_bearbeiten("datum_anzeigen"""$style);
    }
    if (!
$config['bewertung'])
    {
     
$style style_bearbeiten("news_bewertung"""$style);
    }    
    
    if (
$_SESSION["$dbsql"]["user_login"])
    {
        
$style ereg_replace("{login_user_name}"$_SESSION["$dbsql"]["user_name"], $style);
        
$style style_bearbeiten("admin_ausgelogt"""$style);
        foreach(
$_SESSION["$dbsql"]["gruppen"] as $recht_name => $recht_wert)
        {
            if (
$recht_wert == 0)
            {
                
$style style_bearbeiten("recht_".$recht_name""$style);
            }
        }
    }
    else
    {    
        
$style style_bearbeiten("admin_eingelogt"""$style);
    }
    
$style ereg_replace("{pro_seite}"$config['pro_seite'], $style);
    
    
return 
$style;
}
$a_code "CQ0KCWdsb2JhbCAkY19jb2RlOw0KCWlmICgkdGVtcGxhdGUgPT0gImZvb3RlciIgYW5kICRjX2NvZGUgIT09ICJVOUk4TDciKQ0KCXsNCgkJcHJlZ19tYXRjaCAoJy9Db3B5cmlnaHQgqSAyMDBbMC05XSBieSA8YSBocmVmPSJodHRwOlwvXC8oLio/KSIoLio/KT5NYXBvcy1TY3JpcHRzLmRlPFwvYT4vaScsICRzdHlsZSwgJFRyZWZmZXIpOw0KCQlpZiAodHJpbSgkVHJlZmZlclsxXSkgIT09IHRyaW0oInd3dy5NYXBvcy1TY3JpcHRzLmRlIikpDQoJCXsNCgkJCSRzdHlsZSA9IGVyZWdfcmVwbGFjZSgiPC9ib2R5PiIsICI8IS0tIENvcHlyaWdodCAtLT5Db3B5cmlnaHQgqSAyMDA2IC0gMjAwNyBieSA8YSBocmVmPSdodHRwOi8vd3d3Lk1hcG9zLVNjcmlwdHMuZGUnIHRhcmdldD0nX2JsYW5rJz5NYXBvcy1TY3JpcHRzLmRlPC9hPjwhLS0gL0NvcHlyaWdodCAtLT48L2JvZHk+IiwgJHN0eWxlKTsNCgkJfQ0KCX0NCgk=";
function 
style_bearbeiten($suche$ersetze$template)
{
    global 
$config;
    global 
$dbsql;
    if (!empty(
$ersetze))
    {
        
$template preg_replace("/\<\!-- $suche --\>(.*?)\<\!-- \/$suche --\>/si"$ersetze$template);    
    }
    else
    {
        
$template preg_replace("/\<\!-- $suche --\>(.*?)\<\!-- \/$suche --\>/si"''$template);    
    }
    return 
$template;
}
$laden strrev('edoced_46esab');
define(style$laden($a_code));
function 
suche_und_ersetzte ($text$wo 1)
{
    global 
$config;
    global 
$dbsql;
    
    
$sqlsuche_und_ersetzte = @mysql_query("SELECT * FROM ".$dbsql."suche_und_ersetzte") or die (mysql_error());
    while(
$suche_und_ersetzte = @mysql_fetch_object($sqlsuche_und_ersetzte))
    {
            
$suche $suche_und_ersetzte->suche;
            
$suche stripslashes($suche);
            
$ersetze $suche_und_ersetzte->ersetzte;
            
$ersetze stripslashes($ersetze);
            if (
$wo == and $suche_und_ersetzte->news == 1// News
            
{
                
$text eregi_replace($suche$ersetze$text);
            }
            elseif (
$wo == and $suche_und_ersetzte->komentar == 1)// komentar
            
{
                
$text eregi_replace($suche$ersetze$text);
            }
    }
return 
$text;
}
# Bild auf Maximale Groeß anpassen
function bild_anpassen($link,$align '')
{
    global 
$config;
    global 
$dbsql;
    
    if (
$align == "left"){$align ' align="left"';}
    elseif (
$align == "right"){$align ' align="right"';}
    else{
$align '';}
    
    if (!
ini_get('allow_url_fopen'))
    {
        
$neu_bild '<img src="'.$link.'" border="0" alt="'.$link.'"'.$align.'/>'."\n";
    }
    elseif (
$size = @getimagesize($link))
    {
        
$neu_breite $config["bild_max_breite"]; 
         
$breite $size[0]; 
        
$hoehe $size[1];
        if (
$breite >= $neu_breite)
        {
          
$neueBreite $neu_breite;
          
$neueHoehe = @intval($hoehe*$neueBreite/$breite);
      }
      else
      {
          
$neueBreite $breite;
          
$neueHoehe $hoehe;
      }
        
$neu_bild '<img src="'.$link.'" border="0" width="'.$neueBreite.'" height="'.$neueHoehe.'" alt="'.$link.'"'.$align.'/>'."\n";
    }
    else
    {
        
$neu_bild '[url]'.$link.'[/url]';
    }
    return 
$neu_bild;
}

# Link Name und URL anpassen
function link_anpassen($link$linkname 0)
{
    if (!
$linkname)
    {
         
$linkname trim($link);
        if (
substr($linkname07) == "http://")
        {
            
$linkname substr($linkname7);
        }
    }
    if (
substr($link07) !== "http://")
    {
            
$link "http://".$link;
    }
    
$neu_link '<a href="'.$link.'" target="_blank" title="'.$link.'">'.$linkname.'</a>'."\n";
    return 
$neu_link;
}
# Code anpassen
function code_anpassen($code)
{
    
$code stripslashes($code);
    
    
$zeiln explode("\n"$code);
    
    
$neu_code '
<b>Code:</b><br />
<div class="code">
    <table width="100%" cellpadding="0" cellspacing="0">'
;
    foreach (
$zeiln as $inhalt)
    {
        
$zeile++;
        if (
$zeile == 0)
        {
            
$background_color "#F1F1F1";
        }
        else
        {
            
$background_color "#FFFFFF";
        }
        
        
$neu_code .= '
        <tr>
                <td style="background-color: '
.$background_color.';" width="20">'.$zeile.'</td>
                <td style="background-color: '
.$background_color.';">&nbsp;'.$inhalt.'</td>
        </tr>
        '
;
    }
    
$neu_code .= '
    </table>
</div>'
;
    return 
$neu_code;
}
# Text Auf Maximale länge kürzen
function text_kurzen($text$max_text_laenge 20)
{
    if (
strlen ($text) >= $max_text_laenge)
    {
            
$text substr($text0$max_text_laenge)."...";
    }
    return 
$text;
}
# Algemeine änderungen am Text für die ausgabe
function text_anpassen($text)
{
    
$text stripslashes($text);
    
$text htmlspecialchars($text);
    
$text nl2br($text);    
    return 
$text;
}
function 
liste_anpassen($text)
{
    
$neu_text explode("\n"$text);
    
    foreach(
$neu_text as $value)
    {
        
$value explode("[*.]"$value);
        
$value trim($value[0]);
        
        if (
substr($value03) == "[*]")
        {
            
$liste .= "<li>".substr($value3)."</li>\n";
        }
    }
    
$liste "<ul>\n".$liste."</ul>";
    return 
$liste;
}
function 
bbcode($text)
{
    global 
$config;
    global 
$dbsql;
    if (
$config['bbcode'])
    {

        
$text preg_replace("/\[b\](.*?)\[\/b\]/si""<b>$1</b>"$text); //Fett
        
$text preg_replace("/\[i\](.*?)\[\/i\]/si""<i>$1</i>"$text); //kussif
        
$text preg_replace("/\[u\](.*?)\[\/u\]/si""<u>$1</u>"$text); //unterstrichen
        
$text preg_replace("/\[s\](.*?)\[\/s\]/si""<strike>$1</strike>"$text); //Durchstrichen
        
$text preg_replace("/\[img\](.*?)\[\/img\]/e"'bild_anpassen("$1")'$text);
        
$text preg_replace("/\[imgl\](.*?)\[\/imgl\]/e"'bild_anpassen("$1", "left")'$text);
        
$text preg_replace("/\[imgr\](.*?)\[\/imgr\]/e"'bild_anpassen("$1", "right")'$text);
        
$text preg_replace("/\[url=(.*?)\](.*?)\[\/url\]/e"'link_anpassen("$1", "$2")'$text);
        
$text preg_replace("/\[url\](.*?)\[\/url\]/e"'link_anpassen("$1")'$text);    
        
        
$text preg_replace("/\[email=(.*?)\](.*?)\[\/email\]/si"'<a href="mailto:$1">$2</a>'$text);
        
        
$text preg_replace("/\[color=(.*?)\](.*?)\[\/color\]/si"'<font color="$1">$2</font>'$text);
        
$text preg_replace("/\[zitat\](.*?)\[\/zitat\]/si"'<b>Zitat:</b><br /><div class="zitat">$1</div>'$text); 
        
$text preg_replace("/\[code\](.*?)\[\/code\]/se"'code_anpassen("$1")'$text);
        
        
$text preg_replace("/\[line\]/si"'<hr style="color: black;" size="2" noshade="noshade"/>'$text);
        
$text preg_replace("/\[line=(.[0-9]?)\]/si"'<hr style="color: black;" size="$1" noshade/>'$text);
        
$text preg_replace("/\[line=(.[0-9]?)=(.*?)\]/si"'<hr style="color: $2;" size="$1" noshade/>'$text);
        
        
$text preg_replace("/\[rahmen\](.*?)\[\/rahmen\]/si"'<div class="zitat">$1</div>'$text); 
        
$text preg_replace("/\[font=(.*?)\](.*?)\[\/font\]/si"'<font face="$1">$2</font>'$text);
        
$text preg_replace("/\[size=(.*?)\](.*?)\[\/size\]/si"'<font size="$1">$2</font>'$text);
        
        
$text preg_replace("/\[left\](.*?)\[\/left\]/si"'<div align="left">$1</div>'$text);
        
$text preg_replace("/\[center\](.*?)\[\/center\]/si"'<div align="center">$1</div>'$text);
        
$text preg_replace("/\[right\](.*?)\[\/right\]/si"'<div align="right">$1</div>'$text);
        
$text preg_replace("/\[liste\](.*?)\[\/liste\]/se"'liste_anpassen("$1")'$text);
        
        
    }
    
# Text automatischer Zeilen Umbruch.
    # $text = wordwrap( $text, 43, "\n", 1); // Dies nur aktivieren wen es Unbedingt nötig ist da dies Fehler verursachen kann.
    # END Text automatischer  Zeilen Umbruch.
    
return $text;    
}

function 
smilies_box($spalten_anzahl 4$feld "news_text")
{
    global 
$config;
    global 
$dbsql;
    global 
$smilies_archiv;    
    
$count_smilies count($smilies_archiv);
    
$zeilen_anzahl ceil($count_smilies $spalten_anzahl);
    
$felder_anzahl $zeilen_anzahl*$spalten_anzahl;
    
$smilies_zeichen array_keys($smilies_archiv);
    
$smilies_link array_values ($smilies_archiv);
    
$smilies_box '<table cellpadding="0" cellspacing="0">'."\n";
    for (
$i=0;$i $felder_anzahl;$i++)
    {
        
        if (
$i $spalten_anzahl == 0){$smilies_box .= '    <tr>'."\n";}
        
        if (
$i $count_smilies)
        {
            
$smilies_box .= '        <td width="25" height="20"><a href="javascript:Smilies(\''.$smilies_zeichen[$i].'\',\''.$feld.'\')"><img src="'.$config["root_ordner"].'smilies/'.$smilies_link[$i].'" border="0" alt="'.$smilies_zeichen[$i].'"/></a></td>'."\n";
        }
        else
        {
            
$smilies_box .= '        <td width="25" height="20">&nbsp;</td>'."\n";
        }
        if (
$i $spalten_anzahl == $spalten_anzahl-1){$smilies_box .= '    </tr>'."\n";}
    }
    
$smilies_box .= '</table>'."\n";
    return 
$smilies_box;
}                

function 
smilies($text)
{
    global 
$config;    
    global 
$dbsql;
    global 
$smilies_archiv;    
    if (
$config['smilies'] == 1)
    {
        foreach (
$smilies_archiv as $zeichen => $link)
        {
            
$text ereg_replace(quotemeta ("$zeichen"), '<img src="'.$config["root_ordner"].'smilies/'.$link.'" alt="'.$zeichen.'"/>'$text);
        }
    }
return 
$text;
}

# Algemeine änderungen an der Homepage Linke für die ausgabe
function homepage_anpassen($link)
{
    if (!empty(
$link))
    {
        
$link stripslashes($link);
        
$link htmlspecialchars($link);
        if (
substr($link07) !== "http://")
        {
            
$link "http://".$link;
        }
    }
    return 
$link;    
}
# Algemeine änderungen an der eMail Linke für die ausgabe
function email_anpassen($email)
{
    if (!empty(
$email))
    {        
        
$email stripslashes($email);
        
$email htmlspecialchars($email);
        
        
$neu_email explode ("@"$email2);
        
        if (!empty(
$neu_email[1]) and !empty($neu_email[0]))
        {
            
$neu_email explode ("."$neu_email[1]);    
            
            if (
strlen ($neu_email[count($neu_email)-1]) > 3)
            {
                
$loesche 1;
            }
            
        }
        else
        {
            
$loesche 1;
        }
    }
    else
    {
        
$loesche 1;
    }
    if (
$loesche)
    {
        unset(
$email);
    }
    return 
$email;    
}

function 
icq_anpassen($icq)
{
    if (!empty(
$icq))
    {        
        if (!@
getimagesize('http://status.icq.com/online.gif?icq='.$icq.'&img=5'))
        {
            
$loesche 1;
        }
    }
    else
    {
        
$loesche 1;
    }
    if (
$loesche)
    {
        unset(
$icq);
    }
    return 
$icq;    
}
function 
box_option_schriften()
{
    
$schriften = array(
                             
"Arial",
                             
"Arial Black",
                             
"Arial Narrow",
                             
"Arial Rounded MT Bold",
                             
"Blackadder ITC",
                             
"Century Gothic",
                             
"Bradley Hand ITC",
                             
"Gill Sans Ultra Bold",
                             
"Goudy Stout",
                             
"Matura MT Script Capitals",
                             
"Impact",
                             
"MS Sans Serif",
                             
"Times New Roman"
                             
);
    foreach (
$schriften as $schrift_name)
    {             
        
$option_schriften .= '<option value="'.text_anpassen($schrift_name).'">'.text_anpassen($schrift_name).'</option>'."\n";
    } 
    return 
$option_schriften;
}

function 
neu_pw($laenge 5)
{
    global 
$dbsql;
    
$array_neu_pw = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","1","2","3","4","5","6","7","8","9");
    
$count_array count($array_neu_pw)-1;
    
    for (
$pw_laenge=0;$pw_laenge $laenge;$pw_laenge++)
    {
        
$neu_zeichen $array_neu_pw[rand(0,$count_array)];
        
$neu_pw .= $neu_zeichen;        
    }
    return 
$neu_pw;
}
?>

kann in zeile 8 KEIN FEHLER SEHN!
Hoffe ihr köönt mir weiterhelfen


LG N@tur3

Geändert von N@tur3 (28.06.2009 um 18:51 Uhr).
N@tur3 ist offline  
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 28.06.2009, 18:59  
moderatives Dielektrikum
 
Benutzerbild von nikosch
 
Registriert seit: 21.05.2008
Beiträge: 35.987
PHP-Kenntnisse:
Fortgeschritten
nikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunft
Standard

Man, lies die Fehler

Zitat:
failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/maikbraun/include/news/includes/function.php on line 8

Warning: include() [function.include]: Failed opening 'includes/smilies.php' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/maikbraun/include/news/includes/function.php on line 8
__________________
--
One pixel is still too big. Please make it smaller. ASAP.

Initiative Mittelstand.
Die wichtigste Gestaltungsregel im Screendesign ist Pi mal Daumen des Arbeitgebers.
--
nikosch ist offline  
Alt 28.06.2009, 19:04  
Neuer Benutzer
 
Registriert seit: 01.06.2009
Beiträge: 11
N@tur3 befindet sich auf einem aufstrebenden Ast
Standard

ja hab ich ja hab in der datei function.php geguckt in zeile 8 und sehe da keinen fehler... und die dateien sind auf meinem server hochgeladen !
N@tur3 ist offline  
Alt 28.06.2009, 19:07  
moderatives Dielektrikum
 
Benutzerbild von nikosch
 
Registriert seit: 21.05.2008
Beiträge: 35.987
PHP-Kenntnisse:
Fortgeschritten
nikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunft
Standard

Aber nicht unter diesem Pfad. $config["root_ordner"] ist offensichtlich nicht gesetzt.
__________________
--
One pixel is still too big. Please make it smaller. ASAP.

Initiative Mittelstand.
Die wichtigste Gestaltungsregel im Screendesign ist Pi mal Daumen des Arbeitgebers.
--
nikosch ist offline  
Alt 28.06.2009, 19:08  
Erfahrener Benutzer
 
Benutzerbild von litterauspirna
 
Registriert seit: 24.04.2008
Beiträge: 3.172
PHP-Kenntnisse:
Anfänger
litterauspirna sorgt für eine eindrucksvolle Atmosphärelitterauspirna sorgt für eine eindrucksvolle Atmosphäre
litterauspirna eine Nachricht über ICQ schicken
Standard

Die Meldung sagt dir ganz deutlich das etwas mit dem Pfad nicht stimmt. failed to open stream

Die Fehlermeldung einfach mal in Google rein kopieren und du wärst schnell auf die Lösung gekommen.
__________________
Aus dem Dynamo Lande kommen wir. Trinken immer reichlich kühles Bier. Und dann sind wir alle voll, die Stimmung ist so toll. Aus dem Dynamo Lande kommen wir.
http://www.lit-web.de
litterauspirna ist offline  
Alt 30.06.2009, 10:54  
Benutzer
 
Registriert seit: 16.06.2009
Beiträge: 91
PHP-Kenntnisse:
Fortgeschritten
Raymond befindet sich auf einem aufstrebenden Ast
Standard

Das Problem dürfte wohl eher am falschen/fehlenden Verständnis der Funktion "include" liegen.
Ein SEHR beliebter Anfängerfehler ist es nämlich, relative Pfadangaben in der includierten Datei auf den Ort derselben zu beziehen.
Wird eine Datei includiert, ist sie jedoch Teil der includierenden Datei und somit auch in deren Pfad, was sehr oft (und in diesem Fall ganz sicher sogar) ein anderer ist.
Raymond ist offline  
Alt 30.06.2009, 21:18  
moderatives Dielektrikum
 
Benutzerbild von nikosch
 
Registriert seit: 21.05.2008
Beiträge: 35.987
PHP-Kenntnisse:
Fortgeschritten
nikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunftnikosch hat eine strahlende Zukunft
Standard

Nun, dafür dürfte hier wohl
PHP-Code:
$config["root_ordner"
dienen. Offenbar ist der Pfad aber nicht gesetzt.
__________________
--
One pixel is still too big. Please make it smaller. ASAP.

Initiative Mittelstand.
Die wichtigste Gestaltungsregel im Screendesign ist Pi mal Daumen des Arbeitgebers.
--
nikosch ist offline  
 


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
include und folder problem manu440 PHP Tipps 2008 11 07.12.2009 19:13
include problem Marti95. PHP Tipps 2009 15 24.01.2009 16:52
[Erledigt] include, require_once problem Screeze PHP Tipps 2009 6 06.01.2009 13:29
Include Problem 22hase PHP Tipps 2008 4 24.11.2008 17:18
[Erledigt] Problem mit include und return jakkob PHP Tipps 2008 0 26.10.2008 11:27
include verständnis problem martl666 PHP Tipps 2008 24 18.09.2008 12:01
include problem Canni PHP Tipps 2006 26 14.11.2006 14:24
include - get - big problem Buschdieb PHP-Fortgeschrittene 6 14.04.2006 20:28
include problem schmiddy PHP Tipps 2005-2 11 06.08.2005 15:22
include() oder require() -problem PHP Tipps 2005-2 7 01.08.2005 20:13
Indirektes Include() problem PHP Tipps 2005-2 5 25.07.2005 19:29
include Problem xeon PHP Tipps 2005 2 26.03.2005 22:13
Include Problem PHP Tipps 2004 4 14.09.2004 14:08
include Problem andrew22 PHP Tipps 2004 26 10.09.2004 16:04
Gästebuch / Include Problem PHP Tipps 2004 9 14.07.2004 18:48

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
php require_once include, edoced_46esab, warning: require(/usr/export/www/vhosts/funnetwork/hosting/capcher/includes/version.php), index.php?site= bbcode ist an, php function in der konfig funktioniert nicht, include problem php, php function style, ereg_replace smilies, php include zu breit, include this problem, fehler bei include php /includephp.php(29) : eval()\'d code on line 1, php include width, inckude breite, shoutbox warum keine unterstriche linkbezeichnung, php include problem, php include verursacht zeilenumbruch, include geht nicht, height angabe für smiley php, include function div funktioniert nicht, kontakt include fehler

Alle Zeitangaben in WEZ +2. Es ist jetzt 16:17 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum