Berikut adalah contoh implementasi Google reCAPTCHA dengan PHP CodeIgniter untuk memasukkan karakter acak ke dalam model: Pertama, pastikan Anda telah menambahkan reCAPTCHA ke halaman HTML Anda: <form action="submit-form" method="post"> <!-- Form fields --> <div class="g-recaptcha" data-sitekey="YOUR_SITE_KEY"></div> <button type="submit">Submit</button> </form> Pastikan untuk mengganti YOUR_SITE_KEY dengan kunci situs reCAPTCHA Anda. Selanjutnya, di bagian model PHP Anda, Anda … Continue reading implementasi Google reCAPTCHA dengan PHP CodeIgniter model input karakter acak
Category: PHP
QR code Generator API
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
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
Allow Numeric with decimal and without decimal
How to Install PHP 7.2 on Ubuntu 16.04
Pre-flight: Check the Server Environment Correct Permissions: First, make sure you have proper root or sudo permissions to be able to manage the system and applications on the server. If you only have access to a non-root user on the system, then you may have to get more permissions from the server admin.Existing PHP Versions: Check for an existing … Continue reading How to Install PHP 7.2 on Ubuntu 16.04
remove index.php from URL in CodeIgniter
How to remove index.php? 1. Create a .htaccess file Firstly we will need to create a .htaccess file in our project’s root directory or CodeIgniter directory. Creating a .htaccess file will allow us to modify our rewrite rules without accessing server configuration files. Because of this reason, .htaccess is critical to our web application’s security … Continue reading remove index.php from URL in CodeIgniter
Menghapus Karakter yang Tidak Diinginkan dari String PHP
Dalam bahasa pemrograman PHP, terdapat fungsi strip_tags() yang bisa digunakan untuk menghilangkan tag dari HTML, XML dan juga PHP. Namun ada kalanya kita membutuhkan fungsi untuk menghilangkan karakter-karakter lain sehingga karakter yang tersisa hanyalah alphabet atau hanya angka. Untuk menghilangkan karakter-karakter yang tidak diinginkan tersebut kita bisa menggunakan regular expression yaitu preg_replace dengan menyesuaikan karakter apa saja yang hendak … Continue reading Menghapus Karakter yang Tidak Diinginkan dari String PHP
