Link to home
Start Free TrialLog in
Avatar of isaami
isaami

asked on

Path Problem: Failed opening required 'Smarty.class.php' ????

Hi

I downloaded my working site from webserver yesterday and I tried setting it up on my local host. I installed xampp suite for easy php/apache setup. I then copied all files of the site in htdocs folder of xampp. I tried to browse it through http://localhost/ but it returned the following error:


Warning: require_once(Smarty.class.php) [function.require-once]: failed to open stream: No such file or directory in C:\Program Files\xampp\htdocs\config.php on line 8

Fatal error: require_once() [function.require]: Failed opening required 'Smarty.class.php' (include_path='/home/dpt07/pear/lib:/home/dpt07/Smarty/libs;/home/dpt07/pear/lib:/home/dpt07/fpdf/;.;C:\Program Files\xampp\php\pear\') in C:\Program Files\xampp\htdocs\config.php on line 8


which I think is a problem in the path reference of the required files. I'm a novice person in PHP and don't know anything more than echo. I also tried googling it but couldn't find a suitable solution. Your help will be highly appreciated.


Following is the code which returned this error.


ini_set('include_path', '/home/dpt07/pear/lib:/home/dpt07/Smarty/libs' . PATH_SEPARATOR .
      '/home/dpt07/pear/lib:/home/dpt07/fpdf/' . PATH_SEPARATOR .
      ini_get('include_path'));

// load Smarty library
require_once('Smarty.class.php');
require_once('Mail.php');


Many Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of MacAnthony
MacAnthony
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of isaami
isaami

ASKER

I figured it out that smarty was not installed on my computer and secondly I corrected the Paths in php.ini as suggested here http://smarty.incutio.com/?page=SmartyInstallationWindows

Thanks anyways