Linux With Smarty Again Installing Problem
| From: | Balaji Nallathambi | Date: | Sat, 09 Aug 2003 12:59:07 +0000 |
| Subject: | Linux With Smarty Again Installing Problem | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10015@lists.php.net to get a copy of this message | ||
Hi all,
I have instlled smarty in the webdirectory in
"var/www/html/Smarty" ( tho i should not put in
webserver I want to test it)
The PHP version is also 4.2.2
I had give all right to the directory
"var/www/html/Smarty"
and my Index1.php looks like
<?PHP
define('SMARTY_DIR','/var/www/html/Smarty/libs/');
require(SMARTY_DIR.'Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir =
'/var/www/html/Smarty/templates/CustomerList/';
$smarty->compile_dir='/var/www/html/Smarty/libs/';
$smarty->config_dir='/var/www/html/Smarty/libs/';
$smarty->cache_dir='/var/www/html/Smarty/libs/';
$smarty->assign('Name','Ned');
$smarty->display('index.tpl');
?>
When iam trying to run the script in my webbrowser iam
getting the error
"Fatal error: Failed opening required
'/var/www/html/Smarty/libs/Smarty.class.php'
(include_path='.:/usr/share/pear') in
/var/www/html/CustomerList/index1.php on line 3"
All the php files are in the directory
"var/www/html/Smarty/lib"
Samrty.class.php file is there with full rights(RWE)
I had struct up with the problem for 2 days. U guys
pls help me in solving the problem
Advance Thanks
Bye
Balaji.N
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com