Forum : Problem installing smarty
Brief description  about Online courses   join in Online courses
View Pradeep  Kumar 's Profile

Problem installing smarty

I am finding it difficult to install smarty, i followed the instructions given in tutorial and tried configuring multiple times but every time i got the following error.

Warning: require(Smarty_connect.php) [function.require]: failed to open stream: No such file or directory in C:\wamp\www\indexs.php on line 2

Fatal error: require() [function.require]: Failed opening required 'Smarty_connect.php' (include_path='.;C:\php5\pear') in C:\wamp\www\indexs.php on line 2

please explain where i m going wrong
Asked by Pradeep Kumar | Dec 9, 2009 |  Reply now
Replies (1)
View sanjay s nair 's Profile
Normally the file Smarty_connect.php is to be kept in the C:/Smarty/libs/ directory as per the tutorial.

And you have to append the include_path in the php.ini file with the path to that file.

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = ".;C:\xampp\php\pear\.;C:\Smarty\libs"

Dec 9, 2009