how to know the php include_path
Moderator: General Moderators
-
everydayrun
- Forum Commoner
- Posts: 51
- Joined: Wed Jan 20, 2010 1:30 am
how to know the php include_path
copy Smarty libs in one of the folders of the php include_path, don't know how to do this,because i don't know which folders in under the php include_path.any tips would be appreciated.
-
cpetercarter
- Forum Contributor
- Posts: 474
- Joined: Sat Jul 25, 2009 2:00 am
Re: how to know the php include_path
Code: Select all
echo get_include_path();Code: Select all
define (SMARTY_DIR, "/home/myname/www/htdocs/mysite/inc/smarty/");Code: Select all
require(SMARTY_DIR.'Smarty.class.php');