jnull Posted July 30, 2007 Share Posted July 30, 2007 I need to enable, and turn off, a few php.ini settings for some scripting software I desire to install, SugarCRM, Opensource. Can you tell me how to do? Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted July 30, 2007 Share Posted July 30, 2007 You make modifications in your .htaccess file. You cannot modify the php.ini file as that is server wide. What is it you need to change? Quote Link to comment Share on other sites More sharing options...
jnull Posted July 31, 2007 Author Share Posted July 31, 2007 Here's the prompt "PHP Allow Call Time Pass Reference Turned Off Allow Call Time Pass Reference is On (this should be set to Off in php.ini)" Quote Link to comment Share on other sites More sharing options...
TCH-Andy Posted July 31, 2007 Share Posted July 31, 2007 in your .htaccess file try adding php_value allow_call_time_pass_reference 1 Quote Link to comment Share on other sites More sharing options...
jnull Posted July 31, 2007 Author Share Posted July 31, 2007 Thank you ... I'll give that a shot. Quote Link to comment Share on other sites More sharing options...
jgingras Posted August 2, 2007 Share Posted August 2, 2007 What would the script be to change session.gc_maxlifetime to 18000 for example? I hate when my sessions are timing out and would like to keep them from doing that. Would there be a con to setting them for that long? Also, since that is one of two things that I modified in .htaccess, is there anything that needs to seperate them, or just new line? Thanks, -Jacques Quote Link to comment Share on other sites More sharing options...
MikeJ Posted August 2, 2007 Share Posted August 2, 2007 What would the script be to change session.gc_maxlifetime to 18000 for example? I hate when my sessions are timing out and would like to keep them from doing that. Would there be a con to setting them for that long? >php_value session.gc_maxlifetime 18000 ...would do the trick. But there are other things that can cause a session to expire if that doesn't solve your problem so you may want to google more on session management in php. Also, since that is one of two things that I modified in .htaccess, is there anything that needs to seperate them, or just new line? Each command just has to be on it's own line. You do not need any other separators (although blank lines are allowed if you want to use them just for better readability). Quote Link to comment Share on other sites More sharing options...
erisande Posted January 1, 2008 Share Posted January 1, 2008 (edited) Since we do not have access to PHP.INI, I used .htaccess. In my .htaccess, I have definitions: >[...] php_flag register_globals off php_flag display_errors on php_flag display_startup_errors on php_value error_reporting 2047 php_flag log_errors off It appears the file partially works: my register_globals are Off for the site as expected, but the error_reporting doesn't seem to work. I can run PHP code with a known error/warning but get no message. If I put 'error_reporting(E_ALL)' at the top of the actual PHP file, it reports the error/warning as I wanted. Any ideas on what I am doing wrong? [EDIT] Very odd... I think there was something wrong with the formatting of the file. There were tabs hidden in the text (I only saw when I posted this message) and possibly some at the end of each line. I hate that the files are saved in one format (UNIX or Windows or ASCII) and when I edit them with my PHP editor, it causes extra blank lines because it attempts to translate into a different one. Sorry for the bother, but if you have suggestions on the file type issue, I would love to hear it. Edited January 1, 2008 by erisande Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.