Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Aug 2006
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts

    problems with custom php.ini

    hi,

    the login system of my website some times does not allows my clients to login.after trying 6-7 times or may be more times the client can login.this is became a big headache for us.here iam giving my custom php.ini file.can you please help me to get out of it.sessions have been used for this.


    thanks
    mrjameer

    custom php.ini
    $sess_param = array();



    $sess_param['errors_path'] = '../inc/';
    $sess_param['errors_file'] = 'errsess';

    $sess_param['default_lang'] = 'en';

    $sess_param['current_lang'] = IsSet($_SERVER['HTTP_ACCEPT_LANGUAGE']) ?
    substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) : 'en';

    $sess_param['session_start'] = TRUE;

    $sess_param['stop_on_error'] = TRUE;

    $sess_param['error_color'] = 'RED';
    $sess_param['error_size'] = '+0';

    $sess_param['stop_on_warn'] = FALSE;

    $sess_param['warn_color'] = 'BLUE';
    $sess_param['warn_size'] = '+0';


    $sess_param['detail_err_msgs'] = FALSE;

    $sess_param['buffer'] = FALSE;


    $sess_param['key_prefix'] = 'O9R^3mp#i|34';
    $sess_param['key_suffix'] = '+t97!u0K-2L5';


    $sess_param['confirm_pswd'] = '!*CONFIRMED*!';

    $sess_param['encrypt'] = FALSE;



    $sess_param['encrypt_cipher'] = (defined('MCRYPT_GOST')) ? MCRYPT_GOST : NULL;
    $sess_param['encrypt_mode'] = (defined('MCRYPT_MODE_CFB')) ?
    MCRYPT_MODE_CFB : NULL;


    $sess_param['gc_del_locked'] = FALSE;

    $sess_param['db_host'] = $connsqlhostname; // Your host name

    $sess_param['db_user'] = $connlogin; // Your user name assigned

    $sess_param['db_pswd'] = $connpassword; // Your assigned password

    $sess_param['db_name'] = $connbase; // Your database name

    $sess_param['db_persistent'] = FALSE;

    $sess_param['db_resource'] = NULL;


    $sess_param['tb_name'] = 'sessions'; // Session table name

    $sess_param['tb_id_col'] = 'sess_id'; // Session ID key column name

    $sess_param['tb_sl_col'] = 'sess_sec_level'; // Security level column name

    $sess_param['tb_cr_col'] = 'sess_created'; // Session created column name

    $sess_param['tb_ex_col'] = 'sess_expiry'; // Expiry column name

    $sess_param['tb_to_col'] = 'sess_timeout'; // Session timeout column name

    $sess_param['tb_lk_col'] = 'sess_locked'; // Session locked column name

    $sess_param['tb_vl_col'] = 'sess_value'; // Session data column name

    $sess_param['tb_iv_col'] = 'sess_enc_iv'; // Session encrypt IV col. name

    $sess_param['tb_si_col'] = 'sess_sec_id'; // Session security ID column

    $sess_param['tb_tr_col'] = 'sess_trace'; // Session trace column name

    $sess_param['security_level'] = 128; // Range 0-255


    $sess_param['new_sid'] = FALSE;

    $sess_param['sess_id'] = NULL;

    $sess_param['sess_id_len'] = 32;


    $sess_param['ie_fix'] = FALSE;


    $sess_param['slash_anyway'] = TRUE;


    $sess_param['strip_anyway'] = TRUE;


    $sess_param['save_path'] = $connbase; // Set to name of database

    $sess_param['name'] = 'CSESSION'; // Assign your own session name

    //$sess_param['auto_start'] = '1'; // 1 = auto start, 0 = off

    //$sess_param['gc_probability'] = 10; // Garbage Collection

    //$sess_param['gc_divisor'] = 100;

    //$sess_param['gc_maxlifetime'] = 1440;

    //$sess_param['timeout'] = $sess_param['gc_maxlifetime'] * 3;



    //$sess_param['serialize_handler'] = 'php';

    //$sess_param['cookie_lifetime'] = 0;

    //$sess_param['cookie_path'] = '/';

    //$sess_param['cookie_domain'] = '';

    //$sess_param['cookie_secure'] = '0';

    //$sess_param['use_cookies'] = 1;

    //$sess_param['use_only_cookies'] = 0; // For PHP version >= 4.3.0

    //$sess_param['referer_check'] = '';

    //$sess_param['entropy_file'] = '';

    //$sess_param['entropy_length'] = 0;

    //$sess_param['cache_limiter'] = 'nocache';

    //$sess_param['cache_expire'] = 180; // For PHP version >= 4.2.0

    //$sess_param['bug_compat_42'] = 1;

    //$sess_param['bug_compat_warn'] = 1;

    //$sess_param['use_trans_sid'] = 1;

    //$sess_param['hash_function'] = 0;

    //$sess_param['hash_bits_per_character'] = 4;


    //$sess_param['tags'] = 'a=href,area=href,frame=src,iframe=src,form=,fieldset=,input=src';

  2. #2
    Administrator chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    3,110
    Thanks
    29
    Thanked 176 Times in 167 Posts
    Possibly a point of interest: If this is a custom php.ini that you are using to override the php.ini on your server, and you are using a commercial server, you might check with your hosting provider to see if they allow custom php.ini's...
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Instructional videos and tutorials are also available on YouTube, Dailymotion, and Vimeo]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ …Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪

  3. #3
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,990
    Thanks
    3
    Thanked 483 Times in 472 Posts
    That is actually PHP code that is part of an application. It is not settings that are part of a php.ini or a .htaccess file that is used by PHP.
    Finding out HOW to do something is called research, i.e. keep searching until you find the answer. After you attempt to do something and cannot solve a problem with it yourself, would be when you ask others for help.

  4. #4
    New Coder
    Join Date
    Feb 2005
    Location
    philadelphia
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dreamhost custom php.ini

    EDited: problem solved - host issue.
    Last edited by cozbaldwin; 08-10-2009 at 11:42 PM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •