Backend Yii::$app->session->setFlash('success', "Your message to display."); Frontend <?php if (Yii::$app->session->hasFlash('success')): ?> <?= Yii::$app->session->getFlash('success') ?> <?php endif; ?>
if (($handle = fopen($_FILES, "r")) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { if(!array_filter($data)){ continue; } print_r($data); } fclose($handle); }
mysqldump -u {db_user} -p –databases {db_name} > /home/{user}/my.dump.sql
Some times we need to have auto generated increment numbers in list of records in suitecrm. Here is the simple ready to go code, already tested. Just write these line …
<?php $apiUrl = "URL"; $fields = json_encode(array()); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $apiUrl); curl_setopt($ch, CURLOPT_HTTPHEADER, ); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_TIMEOUT, …
mysqldump -u root -p database_name>backuptoday.sql It will save the file by default in the directory below. /home/ubuntu/
$search = strtr($search, array('(' => '', ')' => ''));
You can easily push your leads data to your end points. There are only few steps you have to follow to receive data on your end. Step 1: Make an …