russia5 Posted March 3, 2007 Share Posted March 3, 2007 Hello, I am installing Smarty Templates. Here is the folder/file configuration. www.mydomain.com /templates (folder) /template_c (folder) /configs (folder) /cache (folder) /libs /index.php /libs/internals/ /libs/plugins/ /libs/Smarty_Compiler.class /libs/Config_File.class /libs/Smarty.class Upon logging into the home page, I get this error: Warning: main(../usr/libs/Smarty.class.php): failed to open stream: No such file or directory in /home/russia6/public_html/index.php on line 3 Warning: main(../usr/libs/Smarty.class.php): failed to open stream: No such file or directory in /home/russia6/public_html/index.php on line 3 Fatal error: main(): Failed opening required '../usr/libs/Smarty.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/russia6/public_html/index.php on line 3 Here is the index.php <?php require '../libs/Smarty.class.php'; $smarty = new Smarty; $smarty->compile_check = true; $smarty->debugging = true; I have tryed to put in require '../usr/libs/Smarty.class.php'; But, I get the same thing. Anyone know what I must do? Quote Link to comment Share on other sites More sharing options...
MadTechie Posted March 3, 2007 Share Posted March 3, 2007 Warning: main(../usr/libs/Smarty.class.php): failed to open stream: No such file or directory in /home/russia6/public_html/index.php on line 3 normally means your pointing to the wrong location, try require 'libs/Smarty.class'; Quote Link to comment Share on other sites More sharing options...
russia5 Posted March 3, 2007 Author Share Posted March 3, 2007 That did it. I tryed '/libs/Smarty.class.php' before. So, thankyou. Quote Link to comment Share on other sites More sharing options...
MadTechie Posted March 3, 2007 Share Posted March 3, 2007 Cool Quote Link to comment Share on other sites More sharing options...
MadTechie Posted March 3, 2007 Share Posted March 3, 2007 you could of tried the following require('/home/russia6/public_html/libs/Smarty/Smarty.class.php'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.