I try to install smarty and when I write the require code I cannot find the path

require_once ('d:/wamp/bin/php/php5.3.5/Smarty-3.0.8/Smarty.class.php');

or if you could tell me which is the correct syntax in the ini.php page.
Thanks

Recommended Answers

All 3 Replies

It simply means that php cannot find the /path/to/this/file/Smarty.class.php

So when php start it looks at all the include path defined in your environment and once its not there it gives up.

solution. either place the smarty class in your webroot or also tell php.ini where to find it...

[B]; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
;[/B]

restart server

Member Avatar for diafol

I found installing Smarty within the website was easier.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.