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

index.php im root Verzeichnis

 
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
halloweb
Smarty Regular


Joined: 23 Nov 2004
Posts: 35

PostPosted: Sat Dec 04, 2004 11:33 am    Post subject: index.php im root Verzeichnis Reply with quote

Jetzt liegt die "index.php" noch in dem Ordner "Demo" und ist aufrufbar unter .de/demo

wenn ich die Ordner "configs" , "templates", "templates_c" sowie die Datei "index.php" in den Root Ordner lege , welche Dateien muss ich dann anpassen bzw ?ndern, dass die index.php unter .de gefunden wird ?

Ich werde aus der Anleitung nicht ganz schlau !

________
los angeles dispensaries


Last edited by halloweb on Wed Feb 02, 2011 7:07 pm; edited 2 times in total
Back to top
View user's profile Send private message
halloweb
Smarty Regular


Joined: 23 Nov 2004
Posts: 35

PostPosted: Sat Dec 04, 2004 2:18 pm    Post subject: Reply with quote

diese Fehlermeldung wird gezeigt !
Code:
Warning: Unable to access ../libs/Smarty.class.php in /var/www/web/html/index.php on line 2

Fatal error: Failed opening required '../libs/Smarty.class.php' (include_path='.:/usr/share/pear') in /var/www/web/html/index.php on line 2


index.php
Code:
1)<?
2)require '../libs/Smarty.class.php';
3)$smarty = new Smarty;
4)
5)$smarty->display('index.tpl');
6)?>

________
buy vaporizers

Last edited by halloweb on Wed Feb 02, 2011 7:07 pm; edited 2 times in total
Back to top
View user's profile Send private message
halloweb
Smarty Regular


Joined: 23 Nov 2004
Posts: 35

PostPosted: Sat Dec 04, 2004 3:19 pm    Post subject: Reply with quote

So funktioniert es nicht :

Code:
<?
require '../libs/Smarty.class.php';
$smarty = new Smarty;

$smarty->display('index.tpl');
?>


So funtioniert es :

Code:
<?
require 'libs/Smarty.class.php';
$smarty = new Smarty;

$smarty->display('index.tpl');
?>


Also ohne ../ weiss einer warum das so ist ?

________
Honda NSR250R specifications

Last edited by halloweb on Wed Feb 02, 2011 7:07 pm; edited 2 times in total
Back to top
View user's profile Send private message
T.
Smarty Regular


Joined: 22 Aug 2004
Posts: 69
Location: AT

PostPosted: Sat Dec 04, 2004 4:05 pm    Post subject: Reply with quote

ist doch "klar wie klosbrühe" Wink

ursprüngliche strutkur
.de/demo/index.php
und
.de/libs/Smarty.class.php

Die Pfadangabe bei:
require '../libs/Smarty.class.php';
heißt: ../ -> ein Verzeichnis höher
libs/ -> ins Verzeichnis libs
Smarty.class.php -> diese Datei

wennst jetz natürlich die index verschiebst, dann geht er auch ein verzeichnis höher und sucht dort /libs/, findet es aber nicht.

deswegen musst du das auch auf:
require 'libs/Smarty.class.php';

ändern...

Möcht nicht unverschämt sein, aber das sollten eigentlich standard html-kentnisse sein, und jemanden der sowas nicht weiß auf webseiten mit php/datenbanken/... loszulassen find ich schon hart. - aber jeder wie er glaubt.

mfg Thomas
_________________
Oppossom - Heavy rock from austria
Back to top
View user's profile Send private message Visit poster's website
halloweb
Smarty Regular


Joined: 23 Nov 2004
Posts: 35

PostPosted: Sat Dec 04, 2004 4:17 pm    Post subject: Reply with quote

Quote:
ist doch "klar wie klosbr?he"

urspr?ngliche strutkur
.de/demo/index.php
und
.de/libs/Smarty.class.php

Die Pfadangabe bei:
require '../libs/Smarty.class.php';
hei?t: ../ -> ein Verzeichnis h?her
libs/ -> ins Verzeichnis libs
Smarty.class.php -> diese Datei

wennst jetz nat?rlich die index verschiebst, dann geht er auch ein verzeichnis h?her und sucht dort /libs/, findet es aber nicht.


Danke f?r die Erkl?rung .

________
how to make a vaporizer
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