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

Installation without access to 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
scraf
Smarty n00b


Joined: 19 Apr 2004
Posts: 1

PostPosted: Mon Apr 19, 2004 7:46 am    Post subject: Installation without access to php.ini. Reply with quote

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
View user's profile Send private message Visit poster's website
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