இடுகைகள்

codeigniter லேபிளைக் கொண்ட இடுகைகளைக் காட்டுகிறது

Php subtract two dates? Tamil Programmers

படம்
#behindthecode Example 1 <?php $then = '2019-01-28 09:02:23'; $then = new DateTime($then); $now = new DateTime(); $sinceThen = $then->diff($now); echo $sinceThen->y.' years have passed.<br>'; echo $sinceThen->m.' months have passed.<br>'; echo $sinceThen->d.' days have passed.<br>'; echo $sinceThen->h.' hours have passed.<br>'; echo $sinceThen->i.' minutes have passed.<br>'; Example 2 <?php $date=date_create("2019-01-28"); date_sub($date,date_interval_create_from_date_string("40 days")); echo date_format($date,"Y-m-d"); by Tamil Programmers

Backup MySQL database with CodeIgniter? Tamil Programmers

படம்
#behindthecode function backup()     {                 $this->load->dbutil();          $backup = $this->dbutil->backup();         $name   = date('d-M-Y').'- mariappan.gz';                 $this->load->helper('file');         $path = base_url().'backup/'.$name;         write_file($name, $backup);                 $this->load->helper('download' );         force_download($name, $backup);     } by Tamil Programmers