|
Vorheriges Thema: Nächstes Thema: |
Autor |
Nachricht |
Valker
Anmeldungsdatum: 08.12.2008 Beiträge: 2
|
Verfasst am: 08.12.2008 06:05:12 Titel: Innclude funktioniert nicht mehr |
|
|
Hallo !
Ich habe von vor kurzem meine seite von einem server zum anderen transferiert. Soweit so gut. Das problem ist, das meine 3 php-includes in jeweilige htm seiten nicht mehr funktionieren, obwohl die verlinkung ansich stimmt.
Als beispiel dient mir eine der 3 seiten:
include sieht so aus: <?php include("news.php");?>
alte Seite @funpic: http://valker.va.funpic.de/content_news.htm
neue Seite @funpic:[url] http://www.trinitas-gilde.com/content_news.htm[/url]
Seitencode:
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">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
<title>Nachrichten</title>
<meta name="description" content="Aktuelle Forenbeitraege und Nachrichten rund um die Gilde und Aion" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<style type="text/css">
.neueFormatvorlage1 {
}
.center {
text-align: center;
}
.footer {
font-family: "trebuchet MS";
font-weight: bold;
text-decoration: none;
font-size: 13px;
color: #6E92AA;
text-align: center;
}
a:link {
color: #6E92AA;
text-decoration: none;
font-family: "trebuchet MS";
font-weight: bold;
}
a:active {
color: #6e92aa;
font-family: "trebuchet MS";
text-decoration: none;
font-weight: bold;
}
a:visited {
color: #6e92aa;
font-family: "trebuchet MS";
text-decoration: none;
font-weight: bold;
}
a:hover {
color: #7dabc2;
text-decoration: none;
font-family: "trebuchet MS";
font-weight: bold;
}
</style>
</head>
<body>
<div style="position: absolute; width: 567px; height: 1636px; z-index: 1; left: 0px; top: 0px; background-image: url('data/page/bg/bg_main/bg_content.png'); background-repeat: no-repeat;" id="content"></div>
<div style="position: absolute; width: 170px; height: 23px; z-index: 4; margin-top: 1610px; margin-left: 195px;" id="footer" class="center">
<span class="footer">
<a href="content_archiv.htm">Archiv</a> -
<a target="_blank" href="http://trinitas-gilde.com/paranews/admin">Admin</a></span></div>
<div style="position: absolute; width: 522px; height: 190px; z-index: 2; left: 0px; top: 0px; margin-left: 22px; margin-right: 23px; margin-top: 15px; background-image: url('data/page/bg/bg_content/forenticker.png'); background-repeat: no-repeat;" id="forenticker" >
<div style="position: absolute; width: 487px; height: 120px; z-index: 3; overflow: hidden; left: 25px; top: 52px;" id="forenticker_frame">
<iframe name="forentickerframe" id="forentickerframe" style="width: 487px" height="120" src="http://www.trinitas-gilde.com/forum/forenticker.htm" scrolling="no" frameborder="0" allowtransparency="true" title="Forenticker" marginwidth="0" marginheight="0">Der Browser unterstützt keine Inlineframes oder ist aktuell so konfiguriert, dass Inlineframes nicht angezeigt werden.
</iframe></div>
</div>
<div style="position: absolute; width: 547px; height: 1350px; z-index: 3; margin-top: 230px; margin-left: 7px; left: 0px; top: 0px" id="news">
<?php include("news.php");?>
</div>
</body>
</html>
|
Kann das an dem server ansich liegen?
Bitte um schnelle Hilfe ! |
|
Nach oben |
|
|
Frosty Häufiger Poster
Anmeldungsdatum: 27.10.2008 Beiträge: 221
|
Verfasst am: 08.12.2008 08:06:35 Titel: |
|
|
Aloha,
du führst in einer .html PHP-Code aus. Prinzipiell sollte in einer .php - Datei PHP Code stehen.
Denn ob der Code vom Server gelesen wird, hängt von der php.ini ab. Dort gibt es einen Eintrag: add-application-type - glaub ich. Da kann man noch weitere Extensions (.html, ...) hinzunehmen. Da die php.ini den Webserver alle gewünschten Konfigurationen mitteilt, denke ich mal, dass der neue Server diese Erweiterung einfach nicht hat. Deshalb speicher deine Dateien lieber mal als .php ab und versuche es erneut.
LG
Frosty |
|
Nach oben |
|
|
Valker
Anmeldungsdatum: 08.12.2008 Beiträge: 2
|
Verfasst am: 08.12.2008 13:59:47 Titel: |
|
|
das bringt mich leider nicht weiter.
Wie soll ich eie html datei als php abspichern, dass schreit ja regelrecht nach nem fehler.
Und wie soll ich die php.ini verändern wenn ich sie nicht sehe bzw aufrufen kann?
edit: lol, anscheiend gehts das doch, aber ist das nicht invalid ? |
|
Nach oben |
|
|
Frosty Häufiger Poster
Anmeldungsdatum: 27.10.2008 Beiträge: 221
|
Verfasst am: 08.12.2008 15:21:41 Titel: |
|
|
Auf die php.ini wirst du mit Sicherheit nicht zugreifen können.
Invalid? In welchem Sinne? Vom Code her oder von der Umsetzung? Siehst doch dass es funktioniert - also demnach |
|
Nach oben |
|
|
|
|
Du kannst keine Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum nicht antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen.
|
|
|
|