|
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 |
amit.imcc Smarty n00b
Joined: 08 Sep 2011 Posts: 2
|
Posted: Thu Sep 08, 2011 12:36 pm Post subject: smarty works on localhost butdoesn't work on hosting server. |
|
|
hi,
i am working on a php project and have put smarty folder in my project folder. my libs.ins.php file is as follows.
<?php
$fixpath = dirname(__FILE__);
define ("SMARTY_DIR","/smarty");
require_once (SMARTY_DIR."Smarty.class.php");
$smarty = new Smarty;
$smarty->compile_dir = "$fixpath/compile";
$smarty->template_dir = "$fixpath/templates";
$smarty->image_dir = "$fixpath/Images";
$smarty->css_dir = "$fixpath/CSS";
?>
i include this file in other file where smarty related coding in required.everything is working fine at localhost. i uploaded complete folder structure of my project on my hosting server(in my case it is netfirms.com) . but on hosting server it throws server error 500. could you please give me some suggestions to fix it.
thanks in advance.
Amit |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Sep 08, 2011 3:47 pm Post subject: |
|
|
500 error means, check your apache/php logs for the error. My bet is that the paths are different on the live server. |
|
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
|