Jump to content

neomas

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

neomas's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) I don't know how to solve error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) when i restart SQL Server (MySQL) on WHM of cPanel it's error /usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)' Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists! mysql has failed, please contact the sysadmin (result was "mysql has failed").
  2. I just move hosting it's old hosting is PHP4 and new server is PHP5. But error on script ( PHP my invoice) Warning: mktime() expects parameter 6 to be long, string given in /home/pickmeea/public_html/receipt/inc/date.php on line 15 I don't know to solve this problem This's date.php in inc folder <? function fixDate($val) { $dateArray = explode("-", $val); $val = date("M j, Y", mktime(0,0,0, $dateArray[1], $dateArray[2], $dateArray[0])); return $val; } $year = date (Y); $mon = date (m); $day = date (d); $today = $year."-". $mon."-". $day; $year = date (Y); $mon = date (m)+1; $day = date (d); $p_due = $year."-". $mon."-". $day; $lyear = date (Y)-1; $lmon = date (m); $lday = date (d); $lastyear = $lyear."-". $lmon."-". $lday; //--------day of year----------------------- $dayofyear2 = date('z'); //-----------get year only----------------- $dateyear = date('Y', $unix_time); //-------days in a month------------------ $days_per_month = date('t', $unix_time); //-------week number of year starts monday-------------- $date_week_number = date('W', $unix_time); //------get the begining of year date--------------------- $ago = $dayofyear2; // days $ytda = time() - ($ago * 86400); $ytd = date("Y-m-d", $ytda); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.