Jump to content

Php.ini


Xoviat

Recommended Posts

Quick question:

 

If I use ini_set, does it affect just my settings or the settings of every user on the server?

 

I had no problems changing session.gc_maxlifetime at runtime but I can't find a local instance of php.ini in file manager, so it's made me wonder.

 

Figured part of this out with a bit of self-help. I dropped the ini call and ran the page again. The change isn't permanent but appears to take effect when the script is called. Which makes me wonder is I can get away with an extended maxlifetime or if there are background processes that will clean these up. I would ideally have this set somewhere between 9000 and 12000.

 

The alternative is constant id regeneration (with disposal) and repopulating the variables via mysql calls if they're not set, this sounds like a type server load which should be avoided.

 

Does anyone know much about this?

Link to comment
Share on other sites

There's just a few settings that I change. In some instances I require different error reporting (For example, when I'm working on something new, I don't NEED to generate an error_log for everything, seeing it at run-time will do.) and of course the session length. I am still wondering though if there's any sort of session clean-up process which may ignore the extended length, but I guess i'll figure that out over time if there's no answer.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...