How to see the exact IP Address when using cloudflare?

Hi everyone, When you are using Cloudflare it will mask the Client Ip address, So cloudflare provide us variable that help to find the actual IP address of users. Check below to code the variable of Cloudflare Ip address. If you are using PHP, then you can do use the below code to get the […]

Configuration setting for .conf file in apache

Hello everyone, You are here it means you stuck in your server setting, so please add this code in your /etc/apache2/sites-available/ directory for configuring your domain to your server. After saving this file with nano command, or whatever your using, just enable your site by using below code. Now just reload your apache, by using below command. Now check […]

How to create Remember me function in PHP with CodeIgniter?

Hi Guys, In this tutorial I am going to create Remember me function in PHP with Cookie, Remember me function is used to save user password and username when user click on checkbox Remember me. Before starting use CI Cookie Helper in your project. Now use set_cookie method to set the value in Cookie. Above […]

How to connect MongoDB with PHP CodeIgniter.

Before starting the coding part, we will first install the MongoDB PHP extension, So here is the step for installing and enabling the MongoDB extension in your WampServer – Here I am using WampServer, If you are using other servers like Xamp, it is somehow similar to Wamp. Now come to your Project and install […]

How to block file download outside from Website using .htaccess

Hi all! Below is the code, I am sharing for restricting and blocking the file download from outside of your website. You can put the below code in .htaccess file to restrict the access. This code will block & restrict the access of your file’s access outside from your website. If you want to block […]

Import/Export database using mysql/mariadb console

Sometime we got big database and stuck on the limit of phpMyAdmin upload limit, so here is the solution to import the big mysql file with command line:- First login to the mysql/mariadb using command:- mysql -u <username> -p <password> -h <hostname> mysql> use <database>; mysql> source <file path> Now your importing will start. Export […]

What is the difference between MyISAM and InnoDB?

MYISAM MYISAM supports Table-level Locking MyISAM designed for need of speed MyISAM does not support foreign keys hence we call MySQL with MYISAM is DBMS MyISAM stores its tables, data and indexes in diskspace using separate three different files. (tablename.FRM, tablename.MYD, tablename.MYI) InnoDB InnoDB supports Row-level Locking InnoDB designed for maximum performance when processing high […]

How to check checkbox is checked or not using jquery

FacebookTwitterLinkedinPinterest

Update value of field from another table field in sql

FacebookTwitterLinkedinPinterest

How to reverse value of integer or string in php?

The logic of the below methods will help you to reverse the integer in any language, here I am doing it in PHP. So let’s create a function with the name of reverse_integer:- it will reverse the interger. Reverse string in PHP without strrev() function:- FacebookTwitterLinkedinPinterest