php-settings-example.htaccess (1937B)
1 # $Id$ 2 # 3 # Override PHP Settings. 4 # 5 # Here we are doing some useful settings. Just copy this 6 # file to the OpenRat root directory and rename it to '.htaccess'. 7 # 8 # This is not done by default, because there are servers which do not allow .htaccess files. 9 # 10 11 # Make sure to have "AllowOverride Options" or "AllowOverride All" setting in your httpd.conf 12 # or virtual domain setting. 13 # If you get an "Internal Server Error" you are maybe not allowed to have an '.htaccess' file. 14 # 15 16 # These are only examples. Comment them out if you do not know what you are doing. 17 18 # There is no need for register globals :-) 19 php_flag register_globals off 20 21 # Change this to anything you like. Must be a valid URL variable name 22 #php_value session.name jsessionid 23 php_value session.name oi 24 25 # Parameter separator 26 php_value arg_separator.output ";" 27 #php_value arg_separator.output "&" 28 php_value arg_separator.input "&;" 29 30 # Let this be off 31 php_flag session.auto_start off 32 33 # Lifetime in seconds of Session cookie. 0 is the browser lifetime. 34 php_value session.cookie_lifetime 0 35 36 # Want to use cookies? 37 # If trans_sid is off, you can EITHER use cookies OR url rewriting 38 # off = url rewriting 39 # on = cookies 40 php_flag session.use_cookies off 41 42 # Transient Urls is needed for url-Rewriting 43 php_flag session.use_trans_sid on 44 php_value url_rewriter.tags "a=href,link=href,frame=src,img=src,form=fakeentry" 45 46 php_flag magic_quotes_gpc off 47 php_flag magic_quotes_runtime off 48 49 # Set this higher if you get errors like "max execution time reached" 50 php_value max_execution_time 180 51 52 # Show PHP Error Messages 53 # 1 E_ERROR 54 # 2 E_WARNING 55 # 4 E_PARSE 56 # 8 E_NOTICE 57 # 16 E_CORE_ERROR 58 # 32 E_CORE_WARNING 59 php_value error_reporting 2047 60 61 # This limits the file sizes 62 php_value memory_limit 32M 63 64 # Leave this at 'off'. No need for it. 65 php_flag short_open_tag off 66 php_flag asp_tags off 67 68 # Try this, its faster on slow connections 69 php_flag zlib.output_compression off