Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Include_path question with php.ini

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
brandonw0719
Smarty n00b


Joined: 10 May 2012
Posts: 1

PostPosted: Thu May 10, 2012 9:18 am    Post subject: Include_path question with php.ini Reply with quote

Hi All
I have question with the include_path in php.ini

PHP file
include_once("Smarty.class.php");
$smarty = new Smarty();

in my php.ini
; Windows: "\path1;\path2"
include_path = ".;C:\AppServ\php5\PEAR;C:\AppServ\php5\Smarty\libs"


Below are my warning messages,

Warning: include_once(Smarty.class.php) [function.include-once]: failed to open stream: No such file or directory in C:\AppServ\www\PHP_AJAX\Ch13\Ch13-01.php on line 3

Warning: include_once() [function.include]: Failed opening 'Smarty.class.php' for inclusion (include_path='.;C:\AppServ\php5\pear') in C:\AppServ\www\PHP_AJAX\Ch13\Ch13-01.php on line 3


___________________________________________________
seems like my PHP file cannot locate the Smarty.class.php even if i assign the correct path in php.ini

Please provide help, Thanks a lot
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Thu May 10, 2012 2:30 pm    Post subject: Reply with quote

Quote:
Warning: include_once() [function.include]: Failed opening 'Smarty.class.php' for inclusion (include_path='.;C:\AppServ\php5\pear') in C:\AppServ\www\PHP_AJAX\Ch13\Ch13-01.php on line 3


According the above message the path is not included. Did you restart your server after the modification of php.ini?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP