PHP Forum

PHP Forum (http://www.selfphp.de/forum/index.php)
-   PHP Grundlagen (http://www.selfphp.de/forum/forumdisplay.php?f=12)
-   -   php.php Fehler (http://www.selfphp.de/forum/showthread.php?t=20764)

mikulask 24.01.2009 01:12:14

php.php Fehler
 
Hallo,

ich betreibe eine Website in drei Sprachen: www.heraldik-1a.com. Seit zwei Tagen gibt es Probleme. Diese URL führt direkt auf die deutsche Sprachversion hin. Benutzt man dort die Unterseiten-Buttons, so kommt man auch ohne Probleme auf die deutschen Unterseiten. Klickt man jedoch die Fahnen oben rechts an, dann kommt die HTTP Fehlermeldung 404 -Webseite nicht gefunden. (Diese Meldung kommt sogar, wenn man auf die deutsche Flagge klickt.)

Will man bei der Eingangseite z.B. in die engliche Version wechseln erscheint dann die URL
http://www.heraldik-1a.com/familienw...p-lang-en.html
anstelle der ursprünglichen URL
http://www.heraldik-1a.com/familienw...n-lang-en.html
In der URL erschein also jetzt ein zusätzliches "php". So die Fehlermeldung im Internet-Explorer.

Beim Firefox erscheint beim gleichen Procedere die Fehlermeldung "Not Found
The requested URL /familienwappen_erstellen_lassen.php.php was not found on this server ".

Hat bitte jemand eine Idee, wie man diesen php.php-Fehler beseitigen kann?

DokuLeseHemmung 24.01.2009 01:29:18

AW: php.php Fehler
 
Deine Linkgenerierung hat schon einen Wackelschatten!
Und dadurch kommt dann auch mod_rewrite von der Rolle.

Aber warum?
Das wird sich nur im PHP Quelltext finden lassen.

mikulask 24.01.2009 04:09:46

AW: php.php Fehler
 
Wenn Du willst, dann teile mir doch bitte Deine Emailadresse mit. Gerne sende ich Dir den PHP-Text zu. Vielleicht kannst Du dann den Fehler finden.

feuervogel 24.01.2009 15:07:29

AW: php.php Fehler
 
Zitat:

Zitat von mikulask (Beitrag 123703)
Wenn Du willst, dann teile mir doch bitte Deine Emailadresse mit. Gerne sende ich Dir den PHP-Text zu. Vielleicht kannst Du dann den Fehler finden.

Falsch! Wenn Du willst, dass man Dir hilft, dann poste hier den Quelltext.

mikulask 24.01.2009 18:53:03

AW: php.php Fehler
 
.htaccess

AddDefaultCharset windows-1250
AddCharset windows-1250 .html .php .css .shtml

DirectoryIndex familienwappen_erstellen_lassen.php


Redirect permanent /heraldikde/index.html http://www.heraldik-1a.com/familienw...n-lang-de.html
Redirect permanent /heraldikde/familienwappen.html http://www.heraldik-1a.com/familienwappen-lang-de.html
Redirect permanent /heraldikde/heraldik_angebote.html http://www.heraldik-1a.com/familienw...n-lang-de.html
Redirect permanent /heraldikde/heraldiker.html http://www.heraldik-1a.com/heraldiker-lang-de.html
Redirect permanent /heraldikde/stammbaum.html http://www.heraldik-1a.com/stammbaum-lang-de.html
Redirect permanent /heraldikde/vollwappen_plastik.html http://www.heraldik-1a.com/wappendar...k-lang-de.html
Redirect permanent /heraldikde/kontakt.php http://www.heraldik-1a.com/kontakt-lang-de.html
Redirect permanent /heraldika/index.html http://www.heraldik-1a.com/familienw...n-lang-cz.html
Redirect permanent /heraldika/rodinne_erby.html http://www.heraldik-1a.com/familienwappen-lang-cz.html
Redirect permanent /heraldika/heraldika_nabidka.html http://www.heraldik-1a.com/familienw...n-lang-cz.html
Redirect permanent /heraldika/heraldik.html http://www.heraldik-1a.com/heraldiker-lang-cz.html
Redirect permanent /heraldika/rodokmeny.html http://www.heraldik-1a.com/stammbaum-lang-cz.html
Redirect permanent /heraldika/kompletni_erbova_plastika.html http://www.heraldik-1a.com/wappendar...k-lang-cz.html
Redirect permanent /heraldika/kontakt.php http://www.heraldik-1a.com/kontakt-lang-cz.html
Redirect permanent /family_crest.html http://www.heraldik-1a.com/familienwappen-lang-en.html
Redirect permanent /heraldry_offers.html http://www.heraldik-1a.com/familienw...n-lang-en.html
Redirect permanent /heraldist.html http://www.heraldik-1a.com/heraldiker-lang-en.html
Redirect permanent /family_tree.html http://www.heraldik-1a.com/heraldiker-lang-en.html
Redirect permanent /family_crest_sculpture.html http://www.heraldik-1a.com/wappendar...k-lang-en.html
Redirect permanent /contact.php http://www.heraldik-1a.com/kontakt-lang-en.html
Redirect permanent /wappenrolle.php?lang=de http://www.heraldik-1a.com/deutsche_...le.php?lang=de
Redirect permanent /wappenrolle.php?lang=en http://www.heraldik-1a.com/deutsche_...le.php?lang=en
Redirect permanent /wappenrolle.php?lang=cz http://www.heraldik-1a.com/deutsche_...le.php?lang=cz
Redirect permanent /angebote.php?lang=cz http://www.heraldik-1a.com/familienw...n-lang-cz.html
Redirect permanent /angebote.php?lang=de http://www.heraldik-1a.com/familienw...n-lang-de.html
Redirect permanent /angebote.php?lang=en http://www.heraldik-1a.com/familienw...n-lang-en.html
Redirect permanent /angebots_palette.php?lang=en http://www.heraldik-1a.com/familienw...n-lang-en.html
Redirect permanent /angebots_palette.php?lang=de http://www.heraldik-1a.com/familienw...n-lang-de.html
Redirect permanent /angebots_palette.php?lang=cz http://www.heraldik-1a.com/familienw...n-lang-cz.html

Redirect permanent /index.php?lang=de http://www.heraldik-1a.com/familienw...n-lang-de.html






RewriteEngine On

RewriteRule ^([^/-]+)-([^/-]+)-([^/.-]+)\.html$ $1.php?$2=$3 [L,QSA]

mikulask 24.01.2009 18:57:51

AW: php.php Fehler
 
config.php
PHP-Code:

<?
header('Content-Type: text/html; charset=windows-1250');
session_start();
$Time_Start=strtok(microtime()," ")+strtok(" ");
/*
#############################################
#                                            #
#    HIER IHRE EMAILADRESSE EINTRAGEN        #
#                                            #
#############################################
*/
$empfaenger = 'info@heraldik-1a.com';

$scriptname = $_SERVER['PHP_SELF'];
$scriptname = explode('-lang', $scriptname);
$scriptname = $scriptname[0];
if(empty($scriptname)) {
$scriptname = 'familienwappen_erstellen_lassen';
}

$scriptname2 = explode('-lang', $scriptname);
$scriptname2 = $scriptname2[0].'.php';

$navi_rechts_oben = '<a href="'.$scriptname.'-lang-en.html">            
            <img src="img/en.gif" alt="english" /></a>                     
          <a href="'.$scriptname.'-lang-de.html">            
            <img src="img/de.gif" alt="german" /></a>                     
          <a href="'.$scriptname.'-lang-cz.html">            
            <img src="img/cz.gif" alt="czech" /></a>';
// CZECH
if(isset($_GET['lang']) && $_GET['lang'] == "cz") {
$gentime_text[0] = 'Tuto stránka byla stažena v ';
$gentime_text[1] = 'vteřin';

$link0 = '<a href="familienwappen_erstellen_lassen-lang-cz.html">titulní stránka</a>';
$link1 = '<a href="heraldiker-lang-cz.html">heraldik</a>';
$link2 = '<a href="heraldik-lang-cz.html">heraldika</a>';
$link3 = '<a href="heraldische_wissenschaft-lang-cz.html">heraldická věda</a>';
$link4 = '<a href="familienwappen-lang-cz.html">rodinný erb</a>';
$link5 = '<a href="wappensuche-lang-cz.html">hledaní erbu</a>';
$link6 = '<a href="deutsche_wappenrolle-lang-cz.html">registrace erbů DWR</a>';
$link7 = '<a href="verein_herold-lang-cz.html">spolek HEROLD</a>';
$link8 = '<a href="kirchliche_heraldik-lang-cz.html">církevní heraldika</a>';
$link9 = '<a href="familienstammbaum-lang-cz.html">rodokmen</a>';
$link10 = '<a href="wappendarstellung_vollwappen_plastik-lang-cz.html">kompletní erbová plastika</a>';
$link11 = '<a href="namensdeutung_erstellen_lassen-lang-cz.html">výklad příjmení</a>';
$link12 = '<a href="links-lang-cz.html">linky</a>';
$link13 = '<a href="kontakt_heraldiker-lang-cz.html?PHPSESSID='.session_id().'">objednávka + kontakt</a>';
$link14 = '<a href="impressum-lang-cz.html">impresum + disclaimer</a>';



$footer = '<p style="text-align: center;">
<a href="familienwappen_erstellen_lassen-lang-cz.html">titulní stránka</a> 
<a href="heraldiker-lang-cz.html">heraldik</a> 
<a href="heraldik-lang-cz.html">heraldika</a>
<a href="heraldische_wissenschaft-lang-cz.html">heraldická věda</a>
<a href="familienwappen-lang-cz.html">rodinný erb</a>
<a href="wappensuche-lang-cz.html">hledaní erbu</a>
<a href="deutsche_wappenrolle-lang-cz.html">registrace erbů DWR</a> 
<a href="verein_herold-lang-cz.html">spolek HEROLD</a>
<a href="kirchliche_heraldik-lang-cz.html">církevní heraldika</a> 
<a href="wappendarstellung_vollwappen_plastik-lang-cz.html">kompletní erbová plastika</a>
<a href="familienstammbaum-lang-cz.html">rodokmen</a>
<a href="namensdeutung_erstellen_lassen-lang-cz.html">výklad příjmení</a>
<a href="links-lang-cz.html">linky</a>
<a href="kontakt_heraldiker-lang-cz.html?PHPSESSID='.session_id().'">objednávka + kontakt</a>
<a href="impressum-lang-cz.html">impresum + disclaimer</a>
<a href="http://www.database-search.net/">Backlink Check</a>
</p>
<p style="text-align: center;">
<img src="img/valid_xhtml_1_0.gif" alt="valid XHTML 1.0"/>
<a title="SEO Tools" href="http://www.ranking-hits.de/" target="_blank"><img src="http://www.ranking-hits.de/? ref=www.heraldik-1a.com&amp;style=8" border="0" alt="Suchmaschinenoptimierung mit Ranking-Hits" /></a>
<a href="http://www.database-search.com/sys/pre-check.php" target="_top"><img src="http://database.webstart-service.de/img/prv.gif" border="0" alt="PageRank Verifizierung www.heraldik-1a.com" /></a>
<a href="http://technorati.com/faves?sub=addfavbtn&amp;add=http://www.heraldik-1a.com"><img src="http://static.technorati.com/pix/fave/btn-fave2.png" alt="Add to Technorati Favorites" /></a>
</p>

<!-- PrimaWebtoolsCounter TrackingCode Start //-->
<!-- Ein Service von [url]http://www.PrimaWebtools.de[/url] //-->
<script language="JavaScript" type="text/javascript" src="http://www.heraldik-1a.com/pphlogger.js"></script>
<noscript><a href="http://www.primawebtools.de" target="_blank"><img src="http://count.primawebtools.de/pphlogger.php?encid=10990&amp;st=nosc" alt="Logfile Statistik" /></a></noscript>
<a href="http://www.primawebtools.de" target="_blank"><img src="http://www.primawebtools.de/counter.gif" border="0" alt="Logfile Statistik" /></a>
<!-- PrimaWebtoolsCounter TrackingCode Ende //-->


mikulask 24.01.2009 19:08:14

AW: php.php Fehler
 
familienwappen_erstellen_lassen
PHP-Code:

<?
include("config.php");
// Header
/*$monate = array(
 1=>"01",
 2=>"02",
 3=>"03",
 4=>"04",
 5=>"05",
 6=>"06",
 7=>"07",
 8=>"08",
 9=>"09",
 10=>"10",
 11=>"11",
 12=>"12");
$datei = basename($_SERVER["PHP_SELF"]);
$monat = $monate[date("n",filemtime($datei))];
$tag = date("d",filemtime($datei));
$jahr = date("Y",filemtime($datei));*/
 
$scriptname= $_SERVER['REQUEST_URI'];
$scriptname = explode('?', $scriptname);
$scriptname = $scriptname[0];
if(isset($_GET['lang']) && $_GET['lang'] == "cz") {
/ else {
//DEUTSCH
$description = '... ';
$keywords = '... ';
$title = '... ';
$h1 = '...';
$h2 = '...';
$oben1 = '... ';
$oben3 = '...;
$text1 = '...';
$text2 =  '...';
$text3 = '...';
$text4 = '...';
$text5 = '...:...';
$text6 = '...'
;
$text7 = '...';
$text8 = '<b>Genealogie-Grafik-Arbeiten</b>';
$text9 = '<li><p>künstlerische Gestaltung von Ahnentafel </p></li>
<li><p>künstlerische Gestaltung von Stammbaum </p></li> 
<li><p> Ahnen-Portrait nach Vorlage (z.B. alten Fotos) </p></li>
<li><p> sonstige Graphiken, z.B. Federzeichnungen von altem Familienbesitz nach alten Fotos usw. </p></li>
<li><p> Kalligraphie-Arbeiten, z.B. Replikate alter Urkunden </p></li>
';
$text10 = '<b>Kunstmaler-Arbeiten</b>
';
$text11 = '<li><p>eigene Werke (Vielzahl von Motiven, Techniken und Stilrichtungen) </p></li>
<li><p> Portraits (Auftragskunst) </p></li>
<li><p> Aktmalerei (Auftragskunst) </p></li>
<li><p> Kopien alter Meister (Auftragskunst) </p></li>
<li><p>  Auftragskunst nach Fotovorlagen (z.B. Kinder oder Tiere) </p></li>
<li><p> sonstige Auftragskunst </p></li>
';
$text12 = '...';
$text13 = 'Letzte Aktualisierung am';
}
?>

HTML-Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">             
  <head>                               
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />                               
    <meta http-equiv="language" content="de" />                               
    <meta http-equiv="Content-Script-Type" content="text/javascript" />                               
    <meta name="description" content="<? echo $description;?>" />                               
    <meta name="keywords" content="<? echo $keywords;?>" />                 
    <meta name="revisit-after" content="2 days" />         
    <meta name="verify-v1" content="Hv/ELHysycB5ES5j8isH7lOd6hEQxnLFN3E84WiJ8JA=" />                                   
    <title>                                 
      <?echo $title;?>                       
    </title>                               
    <link rel="shortcut icon" href="/favicon.ico" />                               
    <link rel="stylesheet" type="text/css" href="style.css" />                           
    <meta http-equiv="Content-Style-Type" content="text/css" />           
  </head>             
  <body>                       
    <a name="top"></a>
    <div id="top_container"></div>                     
    <div id="container">                                 
      <p class="s3" style="color: blue; text-align: center; margin-top: 0px; font-weight: bold;">                                           
        <?echo $oben1;?>                                 
      </p>               
      <p class="s3" style="color: #330099; text-align: center; margin-top: 10px; font-weight: bold;">                       
        <?echo $oben2;?>                                 
      </p>                           
      <p style="color: #330099; text-align: center; margin-top: 0px; font-weight: bold;">                                           
        <?echo $oben3;?>                                 
      </p>                                       
      <div id="headerto">                                                           
        <p style="text-align: right;">                                                             
          <? echo $navi_rechts_oben;?>                                             
        </p>                                     
      </div>                                           
      <div id="header">        <h1>                                                     
          <?echo $h1;?></h1>                                     
      </div>                                         
      <div id="content"><h2>                                                     
          <?echo $h2;?></h2>                                                           
        <div id="content_left" style="margin-top: 0px;">                                                             
          <ul id="navigation"><li>
                                                                         
            <?echo $link1;?></li><li>                                                               
            <?echo $link2;?></li><li>                                                               
            <?echo $link3;?></li><li>                                                               
            <?echo $link4;?></li><li>                         
            <?echo $link5;?></li><li>                                                 
            <?echo $link6;?></li><li>                       
            <?echo $link7;?></li><li>                       
            <?echo $link8;?></li><li>                       
            <?echo $link9;?></li><li>                                       
            <?echo $link10;?></li><li>
            <?echo $link11;?></li><li>
            <?echo $link12;?></li><li>
            <?echo $link13;?></li><li>                               
            <?echo $link14;?></li>                                 
          </ul>                                           
        </div>                                           
        <div id="content_right">                                                     
          <p style="float: left; padding-right: 20px; padding-top: 8px;">                                                               
            <a href="img/intro_large.jpg">                                                                         
              <img src="img/intro.jpg" width="270" alt="" /></a><br />                                                               
            <span style="font-size:13px;">                                                                         
              <?echo $text3?>                                                               
            </span>                                                     
          </p>
                                                   
          <p class="ab_15">                                                               
            <?echo $text1?>                                                     
          </p>
                                                     
          <p class="ab_15">                                                               
            <?echo $text2?>                     
          </p>
                   
          <h2 class="ab_15">                       
              <?echo $text4;?>                   
            </h2>
       
            <p class="ab_15">                         
              <?echo $text5;?>           
            </p>
                 
            <p class="ab_15" >                       
              <?echo $text6;?>                   
            </p>
         
            <ul class="ab_15" style="margin-left:20px;">                       
              <?echo $text7;?>                   
            </ul>
         
            <p class="ab_15">                       
              <?echo $text8;?>                   
            </p> 
       
            <ul class="ab_15" style="margin-left:20px;">                       
              <?echo $text9;?>           
            </ul>
                   
            <p class="ab_15">                     
              <?echo $text10;?>                   
            </p>
                   
            <ul class="ab_15" style="margin-left:20px;">                       
              <?echo $text11;?>                   
            </ul>

            <p class="ab_15">                       
              <?echo $text12;?>                   
            </p>
                     
            <p>         
            <?echo $text13?>       
                <? 
                        if(empty($_SERVER['PHP_SELF'])) {
                                $filetime = @filemtime('familienwappen_erstellen_lassen.php'); 
                        } else {
                                $filetime = @filemtime(basename($scriptname2));
                        }   
                        echo '<i>'.date("d.m.Y", $filetime).'</i>';
                ?>
                   
          </p> <? include("gen_time.php");?>                                       
        </div>
        <script type='text/javascript' language='JavaScript'
src='http://xslt.alexa.com/site_stats/js/t/a?url=www.heraldik-1a.com'>
</script>                                                           
      </div> 
      <div id="footer">                                                   
        <?echo $footer;?>                                             
        </div>
      </div> 
      <div id="bottom_container"></div> 
    <div style=""></div>     
  </body>
</html>


feuervogel 25.01.2009 01:38:04

AW: php.php Fehler
 
und die forenregen darfst du auch beachten...speziall punkt A 8 - danke!

mikulask 25.01.2009 06:06:38

AW: php.php Fehler
 
Danke für den Hinweis. Ich bitte um Nachsicht. Mit der ganzen Angelegenheit bin ich etwas überfordert. Für eine konkrete Hilfestellung, die das Problem endlich lösen würde, wäre ich sehr dankbar.

doppelklick 25.01.2009 10:06:14

AW: php.php Fehler
 
Lass Dir mit:
PHP-Code:

error_reporting (E_ALL); 

die Fehlermeldungen anzeigen und beseitige erstmal die Fehler im Script.

doppelklick


Alle Zeitangaben in WEZ +2. Es ist jetzt 14:31:43 Uhr.

Powered by vBulletin® Version 3.8.3 (Deutsch)
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.