|
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 |
scraf Smarty n00b
Joined: 19 Apr 2004 Posts: 1
|
Posted: Mon Apr 19, 2004 7:46 am Post subject: Installation without access to php.ini. |
|
|
Just thought I would mention that the instructions for INSTALLATION (quick) in the read me files packaged with Smarty have a potential problem causer.
Quote: |
* TECHNICAL NOTE: If you do not have access to the php.ini file, you can change
non-server settings (such as your include_path) with the ini_set() command.
example: ini_set("include_path",".:/usr/local/lib/php");
|
Running that ini_set code messed up the path to the .htaccess files on my server and led to no end of confusion. (This was while I installing PEAR, not Smarty as it goes).
Here is another version which adds the original include_paths, as opposed to replacing them....
Quote: |
$dev_include_dir = "/some/path/I/want/";
set_include_path(get_include_path() . ":" . $dev_include_dir);
|
Kudo's to Arkham_c over at MacNN forums for that piece of code. |
|
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
|