|
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 |
Hayreon Smarty Rookie
Joined: 20 Sep 2008 Posts: 6
|
Posted: Sat Sep 08, 2012 9:09 am Post subject: Smarty -> OVH |
|
|
Bonjour,
Je rencontre ce problème lors de la mise en ligne de mon site :
Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /.../.../www/test/core/smarty/Smarty.class.php on line 116
En local tout fonctionne bien !
Je suis chez OVH, serveur mutualisé.
Y a t il une configuration spéciale à faire ?
D'avance merci pour votre aide. |
|
Back to top |
|
bluejester Smarty Regular
Joined: 26 Apr 2012 Posts: 55
|
Posted: Wed Oct 24, 2012 8:49 am Post subject: |
|
|
Salut,
J'interviens tard, tu as sûrement déjà trouvé la réponse, mais si ça peut servir à d'autres personnes...
Chez OVH, c'est PHP4 qui est exécuté par défaut ; pour utiliser Smarty 3, il faut activer PHP5.
Il suffit pour cela de créer un fichier .htaccess à la racine de ton application (celle qui va utiliser smarty, pas le dossier smarty lui-même) en indiquant :
Bien à toi, |
|
Back to top |
|
Hayreon Smarty Rookie
Joined: 20 Sep 2008 Posts: 6
|
Posted: Wed Jun 26, 2013 2:58 pm Post subject: |
|
|
Bonjour,
Et non, je n'avait pas la réponse et j'utilise toujours ma bonne vieille version mais maintenant je vais pouvoir faire une bonne mise à jour
Merci ! |
|
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
|