https://www.malasngoding.com/export-excel-laravel/ https://sangcahaya.id/tutorial-export-excel-laravel/
Category: Coding
Info Percodingan
Laravel Upload File
How To Switch Between Multiple PHP Versions In Ubuntu
Switch Between Multiple PHP Versions To check the default installed version of PHP, run: $ php -v PHP 7.2.7-0ubuntu0.18.04.2 (cli) (built: Jul 4 2018 16:55:24) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.7-0ubuntu0.18.04.2, Copyright (c) 1999-2018, by Zend Technologies As you can … Continue reading How To Switch Between Multiple PHP Versions In Ubuntu
Security on WP
1. Batasi hak akses file penting :.htacces > ubah permisionnya menjadi 0404 (644) wp-config.php > ubah permisionnya menjadi 0400 (644) index.php > ubah permisionnya menjadi 0400 (604) wp-blog-header.php > ubah permisionnya menjadi 0400 (644) wp-admin > ubah permisionnya menjadi 0705 (755) wp-includes > ubah permisionnya menjadi 0705 (755) wp-content > ubah permisionnya menjadi 0705 (755) … Continue reading Security on WP
Step Install CI in Win 10
Step Running in Win 10 : Install postgres 12.4 => https://www.postgresql.org/ftp/source/v12.4/Install XAMPP 7.4.25 / PHP 7.4.25 => https://www.apachefriends.org/download.htmlCopy script Codeigniter (retail) to C:\xampp\htdocsOpen PGAdmin =>4a. create Group Login/Role vendoretail4b. Create database vedoretail4c. klik kanan pilih PSQL_TOOL => restore databasenya (vendoretail=# \i 'C:/Users/Owner/Downloads/vendoretail.sql')4d. test running apps dari browser http://localhost/retail4e. jangan lupa setting config db di scriptnya … Continue reading Step Install CI in Win 10
Join in SQL
Apa itu join? Join adalah cara untuk menghubungkan data yang diambil dari tabel-tabel melalui sebuah kolom yang menghubungkan mereka. Misal, pembaca mungkin ingin menghubungkan tabel alamat dengan tabel nomor telepon berdasarkan nama seseorang (contoh: "Berikan saya alamat dan nomor telepon seseorang yang bernama John Smith."). Mengapa join itu penting? Join memperbolehkan kita untuk mengambil data dari … Continue reading Join in SQL
Raw Query SQL pada Odoo (request.env.cr OR self.env.cr)
BASIC JAVASCRIPT CRYPTO
<!-- (A) LOAD CRYPTO JS LIBRARY --> <!-- https://cryptojs.gitbook.io/docs/ --> <!-- https://cdnjs.com/libraries/crypto-js --> <script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js"></script> <script> // (B) ENCRYPT & DECRYPT FUNCTIONS var crypt = { // (B1) THE SECRET KEY secret : "CIPHERKEY", // (B2) ENCRYPT encrypt : function (clear) { var cipher = CryptoJS.AES.encrypt(clear, crypt.secret); cipher = cipher.toString(); return cipher; }, // (B3) … Continue reading BASIC JAVASCRIPT CRYPTO
Show progress-bar while loading using ajax
Download gif progess bar => http://www.ajaxload.info/ $(function() { $("#client").on("change", function() { var clientid=$("#client").val(); $('#loadingmessage').show(); $.ajax({ type:"post", url:"clientnetworkpricelist/yourfile.php", data:"title="+clientid, success:function(data){ $('#loadingmessage').hide(); $("#result").html(data); } }); }); }); On html body <div id='loadingmessage' style='display:none'> <img src='img/ajax-loader.gif'/> </div>
