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/dpt0 7/Smarty/l ibs;/home/ dpt07/pear /lib:/home /dpt07/fpd f/;.;C:\Pr ogram 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:/hom e/dpt07/Sm arty/libs' . PATH_SEPARATOR .
'/home/dpt07/pear/lib:/hom e/dpt07/fp df/' . PATH_SEPARATOR .
ini_get('include_path'));
// load Smarty library
require_once('Smarty.class .php');
require_once('Mail.php');
Many Thanks in advance
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.
Fatal error: require_once() [function.require]: Failed opening required 'Smarty.class.php' (include_path='/home/dpt07
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:/hom
'/home/dpt07/pear/lib:/hom
ini_get('include_path'));
// load Smarty library
require_once('Smarty.class
require_once('Mail.php');
Many Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks anyways