FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Usage of ini_set
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Usage of ini_set [message #37048] Mon, 30 April 2007 17:53 Go to next message
JanRei is currently offline  JanRei   Germany
Messages: 361
Registered: October 2005
Location: Germany
Karma: 0
Senior Member
Contributing Core Developer
Translator
add to buddy list
ignore all messages by this user
FUDforum uses a lot of ini_set calls, mainly in install.php and upgrade.php. But I am on a shared hoster and on shared hosters this function is usually disabled. In case ini_set is disabled it is really hard to install/upgrade FUDforum.
Therefore I would like to suggest that FUDforum doesn't use ini_set. What do you think about?
Re: Usage of ini_set [message #37049 is a reply to message #37048] Mon, 30 April 2007 19:04 Go to previous messageGo to next message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Without the use of the function it is not possible to determine some critical bits of information regarding the PHP environment.

FUDforum Core Developer
Re: Usage of ini_set [message #37052 is a reply to message #37048] Mon, 30 April 2007 19:13 Go to previous messageGo to next message
JanRei is currently offline  JanRei   Germany
Messages: 361
Registered: October 2005
Location: Germany
Karma: 0
Senior Member
Contributing Core Developer
Translator
add to buddy list
ignore all messages by this user
Well, I don't understand exactly why ini_set is required for getting information since I thought ini_set is for setting php settings, isn't it?

If you don't want remove it, maybe it would be possible to make sure that FUDforum also works with this function disabled.
Re: Usage of ini_set [message #37053 is a reply to message #37052] Mon, 30 April 2007 19:22 Go to previous messageGo to next message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
During the install the forum needs to determine key PHP settings (PHP environment) to determine how it needs to work.

FUDforum Core Developer
Re: Usage of ini_set [message #37054 is a reply to message #37048] Mon, 30 April 2007 19:33 Go to previous messageGo to next message
JanRei is currently offline  JanRei   Germany
Messages: 361
Registered: October 2005
Location: Germany
Karma: 0
Senior Member
Contributing Core Developer
Translator
add to buddy list
ignore all messages by this user
With ini_set? Why don't you use ini_get?
Re: Usage of ini_set [message #37062 is a reply to message #37054] Tue, 01 May 2007 13:17 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Because some settings such as the ones relating to error reporting often need to be adjusted.

FUDforum Core Developer
Re: Usage of ini_set [message #37063 is a reply to message #37048] Tue, 01 May 2007 14:37 Go to previous messageGo to next message
JanRei is currently offline  JanRei   Germany
Messages: 361
Registered: October 2005
Location: Germany
Karma: 0
Senior Member
Contributing Core Developer
Translator
add to buddy list
ignore all messages by this user
In this case I would prefer if the installer would take care of disabled ini_set. Wouldn't it be possible to check whether ini_set is disabled and then warn the user that FUDforum couldn't change some settings?
Re: Usage of ini_set [message #37072 is a reply to message #37063] Wed, 02 May 2007 15:56 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
I've added checks around ini_set() calls in the upgrade script and the installer.

FUDforum Core Developer
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: multi language without registering?
Next Topic: Groups Manager Member Links
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Oct 20 10:03:10 EDT 2017

Total time taken to generate the page: 0.00715 seconds