|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
halloweb Smarty Regular
Joined: 23 Nov 2004 Posts: 35
|
|
Back to top |
|
halloweb Smarty Regular
Joined: 23 Nov 2004 Posts: 35
|
Posted: Sat Dec 04, 2004 2:18 pm Post subject: |
|
|
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 |
|
halloweb Smarty Regular
Joined: 23 Nov 2004 Posts: 35
|
Posted: Sat Dec 04, 2004 3:19 pm Post subject: |
|
|
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 |
|
T. Smarty Regular
Joined: 22 Aug 2004 Posts: 69 Location: AT
|
Posted: Sat Dec 04, 2004 4:05 pm Post subject: |
|
|
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.
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 |
|
halloweb Smarty Regular
Joined: 23 Nov 2004 Posts: 35
|
Posted: Sat Dec 04, 2004 4:17 pm Post subject: |
|
|
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 |
|
|
|
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
|