I have uploaded the libs folder to my server. When I try to view the page, I get this error:
Warning: main(/libs/Smarty.class.php): failed to open stream: No such file or directory in /home/jcurrent/public_html/test.php on line 4
Fatal error: main(): Failed opening required '/libs/Smarty.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jcurrent/public_html/test.php on line 4
Here is the code:
<?php
define('SMARTY_DIR', '/libs/');
require(SMARTY_DIR . 'Smarty.class.php');
$smarty = new Smarty;
$smarty->assign('name', 'Bob');
$smarty-display('{name}');
?>
How can I get this to work? Thanks. 🙂