SV: [SMARTY] Install Smarty on Linux - Problem

From: Date: Fri, 08 Aug 2003 11:03:32 +0000
Subject: SV: [SMARTY] Install Smarty on Linux - Problem
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10011@lists.php.net to get a copy of this message
It might be a typo in your email however: /usr/local/Smarty/ != /usr/local/smarty/ in > I have installed the smarty directory on > /usr/local/smarty/. If you really have installed Smarty in /usr/local/smarty/ and you require as "Smarty" (capital S) that might be the problem. In Linux case matters. greets Paolo > -----Oprindelig meddelelse----- > Fra: Balaji Nallathambi [mailto:balaji_smarty@yahoo.com] > Hi all, > > I have used smarty on Windows there is no problem. > Iam trying to use it in Linux (RedHat). Iam getting > the following error. > > Fatal error: Failed opening required > '/usr/local/Smarty/libs/Smarty.class.php' > (include_path='.:/usr/share/pear') in > /var/www/html/CustomerList/index1.php on line 3 > > My Script is like this > > <?PHP > define('SMARTY_DIR','/usr/local/Smarty/libs/'); > require(SMARTY_DIR.'Smarty.class.php'); > $smarty = new Smarty; > $smarty->template_dir = > '/usr/local/Smarty/templates/CustomerList/'; > $smarty->compile_dir='/usr/local/Smarty/libs/'; > $smarty->config_dir='/usr/local/Smarty/libs/'; > $smarty->cache_dir='/usr/local/Smarty/libs/'; > > $smarty->assign('Name','Ned'); > $smarty->display('index.tpl'); > > ?> > > I have installed the smarty directory on > /usr/local/smarty/. > I had give all the premission to the files. Since iam > getting this error. > > Pls Help it Out. > I had struct with this problem. > > Advance Thanks > > Bye > Balaji.N > > > > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.smarty.general (#10011) next »