Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

include php mit trusted_dir

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
Neuling
Smarty n00b


Joined: 06 Jul 2013
Posts: 2

PostPosted: Sat Jul 06, 2013 5:57 pm    Post subject: include php mit trusted_dir Reply with quote

Hallo,

Ich möchte ein Projekt, das Smarty verwendet, etwas erweitern.
Includet werden soll eine PHP-Datei , die einen iframe beinhaltet, der eine Flashanwendung lädt, die wiederum selbst auf eine php-Datei zugreift.

Dazu habe ich heute alle möglichen Variationen zunächst ohne, dann mit SmartyBC mit $trusted_dir und verschiedenen Ordnern und {include_php} und {php}, mit include mal mit, mal ohne http://, ausprobiert.

Das "beste", was ich erreicht habe und wieder aktueller Stand ist, ist die Fehlermeldung 404, obwohl ich die Datei mit dem angegebenen Include-Pfad problemlos aufrufen kann.

Gibt es noch irgendwelche relativen Pfadangaben, die beachten sind? Falls ja: Wie müsste ich das umsetzen?

Für ein konkretes Beispiel mit Pfadangaben wäre ich dankbar.

Hinweis zur Version:
Es ist eine ältere SmartyVersion; um SmartyBC nutzen zu können, habe ich die Datei aus der aktuellen Stable-Version genommen.


Danke im Voraus für Infos und Hilfe!
Back to top
View user's profile Send private message
Grizzly
Smarty Pro


Joined: 15 Apr 2011
Posts: 172
Location: Germany

PostPosted: Mon Jul 08, 2013 9:21 am    Post subject: Reply with quote

Also funktionieren sollte es eigentlich schon, wenn du mit z. B. include_php machst. Hast du vllt in der PHP Datei im Iframe eine URL die vom aktuellen Verzeichnis nicht aufgelöst werden kann?
Back to top
View user's profile Send private message Visit poster's website
Neuling
Smarty n00b


Joined: 06 Jul 2013
Posts: 2

PostPosted: Mon Jul 08, 2013 12:57 pm    Post subject: Reply with quote

Hallo Grizzly,

danke für deine Antwort.
Ich hab's gerade eben gelöst Smile Der Fehler war tatsächlich, dass eine der Dateien über einen relativen Pfad vom aufrufenden Vereichnis aus aufgerufen werden muss.
Simple Lösung, wenn man es erst einmal weiss. Wink

LG
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP