Skip to main content

Add variable to apache and php handlers

Comments

5 comments

  • cPanelMichael
    Hello, Check to see if the solution referenced on the following post helps: Getting PHP_AUTH_* on EA4 Thank you.
    0
  • Marcelo Bonilla
    I did not work
    0
  • Marcelo Bonilla
    error_log PHP Strict Standards: Only variables should be assigned by reference in /home/cronos/public_html/engine/connect_core.php on line 29
    0
  • Marcelo Bonilla
    [PHP] //Check ADODB version, 5.09 or late if(_ADODB_VERSION < '5.09'){ print ('Invalid ADODB version.'); exit; } if($core['connection_type"> == "ODBC"){ $core_db = &ADONewConnection('odbc'); if($core['debug"> == 1){ $core_db->debug = true; } $core_db_connect_sql = $core_db->Connect($core['db_name">,$core['db_user">,$core['db_password">,$core['db_host">); if(!$core_db_connect_sql){ $sql_part = '1'; include('error_templates/sql_error.php'); exit; } $core_db2 = $core_db; if($core['server_use_2_db"> == "1"){ $core_db2 = &ADONewConnection('odbc'); if($core['debug"> == 1){ $core_db2->debug = true; } $core_db_connect_sql2 = $core_db2->NConnect($core['db_name2">,$core['db_user2">,$core['db_password2">,$core['db_host2">); if(!$core_db_connect_sql2){ $sql_part = '2'; include('error_templates/sql_error.php'); exit; } $core_db2 = $core_db2; } }elseif ($core['connection_type"> == "MSSQL"){ $core_db = &ADONewConnection('mssql'); // LINE 29 if($core['debug"> == 1){ $core_db->debug = true; } $core_db_connect_sql = $core_db->Connect($core['db_host">,$core['db_user">,$core['db_password">,$core['db_name">); if(!$core_db_connect_sql){ $sql_part = '1'; include('error_templates/sql_error.php'); exit; } $core_db2 = $core_db; if($core['server_use_2_db"> == "1"){ $core_db2 = &ADONewConnection('mssql'); if($core['debug"> == 1){ $core_db2->debug = true; } $core_db_connect_sql2 = $core_db2->NConnect($core['db_host2">,$core['db_user2">,$core['db_password2">,$core['db_name2">); if(!$core_db_connect_sql2){ $sql_part = '2'; include('error_templates/sql_error.php'); exit; } $core_db2 = $core_db2; } } ?>[/PHP]
    0
  • cPanelMichael
    PHP Strict Standards: Only variables should be assigned by reference in /home/cronos/public_html/engine/connect_core.php on line 29

    Hello, This looks to be a PHP coding issue as opposed to an issue with the cPanel & WHM software. You will likely receive more user-feedback to this type of question on a website such as StackOverflow. EX: Strict Standards: Only variables should be assigned by reference in ADONewConnection Why are $_SERVER["PHP_AUTH_USER"> and $_SERVER["PHP_AUTH_PW"> not set? Thank you.
    0

Please sign in to leave a comment.