|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
brandonw0719 Smarty n00b
Joined: 10 May 2012 Posts: 1
|
Posted: Thu May 10, 2012 9:18 am Post subject: Include_path question with php.ini |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu May 10, 2012 2:30 pm Post subject: |
|
|
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 |
|
|
|
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
|