Include

cimba

B1G-Software-Kunde
#1
Hallo,

Ich versuche eine html Datei aus einem Unterverzeichnis, mit include
einzubinden. Dabei erhalte ich diese Fehlermeldung.

Warning: Smarty error: unable to read resource: "../affili/content2.html" in /var/www/web0/html/serverlib/3rdparty/smarty/Smarty.class.php on line 1095

html
-b1gMail7
--affili (das Unterverzeichnis)
Danke schon mal im vorraus.
 

cimba

B1G-Software-Kunde
#3
Hallo,
html_dir, hat leider nicht funktioniert.
wenn ich das hier nehme

{include file="/templates/bluestyle/custompages/dating.tpl"}
meckert er über open_basedir.

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/templates/bluestyle/custompages/dating.tpl) is not within the allowed path(s): (/var/www/web0/html/:/var/www/web0/phptmp/:/var/www/web0/files/:/var/www/web0/atd/) in /var/www/web0/html/serverlib/3rdparty/smarty/Smarty.class.php on line 1659

einige Varianten die ich bereits versucht habe, das einzige das ich includen kann ist $page ???

{include file="html_dir/custompages/dating.tpl"}
{include file="$lostpw.tpl"}
{include file="$login"}

Warning: Smarty error: unable to read resource: "" in /var/www/web0/html/serverlib/3rdparty/smarty/Smarty.class.php on line 1095

include würde ich gerne diese Datei
/html/affili/templates/standard/content.html

Danke für deine Hilfe
 

MasterKKK

B1G-Software-Kunde
#6
und so:

PHP:
{include file="/html/affili/templates/standard/content.html"}
bin mir nicht sicher ob das klappt. Hab nichts zum testen hier :tongue:
 

cimba

B1G-Software-Kunde
#7
Hallo,

hat leider auch nichts gebracht bekomme immer die Meldung,


Warning: Smarty error: unable to read resource:

bis auf die Page die ja in die index.tpl includet Wirt kann ich nichts includen jeglicher versuch führt zur Meldung Warning.....?(
 
Top