PayPal | Notify url and Return url Both of these are used in PayPal payment gateway integration. Notify url is used by paypal to send response regarding current transaction in other word notify about the …

Last updated 7 years, 1 month ago | 4869 views

Tags:- PHP PayPal

Codeigniter | SET or GET config variables The config set_item() & item() functions are work for SET and GET a config variable in codeigniter   In Codeigniter, by default, all config variables are located at the “application/config/config.php” …

Last updated 6 years, 3 months ago | 4862 views

Tags:- CodeIgniter

Python | Encrypt and Decrypt using AWS KMS key in python with boto3 This is an example of how to encrypt and decrypt a text using the AWS KMS key. In this, we will use …

Last updated 4 years, 5 months ago | 4619 views

Tags:- Python Boto3 AWS KMS

HTML | Target attribute To open a pdf file we can use the target attribute of the anchor tag. The target attribute of the anchor tag specifies where to open the linked document. Syntex for using …

Last updated 7 years, 2 months ago | 4615 views

Tags:- HTML

PHP-MYSQL |  mysqli_fetch_object () VS  mysqli_fetch_array() mysqli_fetch_object()  fetch a result row as an object where as mysqli_fetch_array()  fetch a result row as an associative array, a numeric array, or both.       mysqli_fetch_object() The mysqli_fetch_object() function returns …

Last updated 7 years ago | 4544 views

Tags:- PHP

Jquery | Remove id attribute from an element The removeAttr() function from jquery is used to removes one or more attributes from the selected elements. $("div").removeAttr("id");     Here seen an example with complete code …

Last updated 5 years, 6 months ago | 4332 views

Tags:- HTML JQuery JavaScript

session_id() function There is a function session_id() in php which is use to get and/or set the current session id. string session_id ([ string $id ] ) for getting session id in php we have to …

Last updated 7 years, 1 month ago | 4223 views

Tags:- PHP

php.ini and .htaccess file Both php.ini and .htaccess file is the configuration file. php.ini: It is a configuration file for php setting. It is a special file by which you can make changes in PHP …

Last updated 6 years, 6 months ago | 4071 views

Tags:- PHP htaccess

PHP | check whether a number is even or odd A trick to check whether a number is even or odd without using any condition or loop.   <?php $arr=array("0"=>"Even","1"=>"Odd"); $check=13; echo "Your number is: ".$arr[$check%2]; …

Last updated 6 years, 5 months ago | 4063 views

Tags:- PHP

PHP | Nested ternary conditional operator An example code showing the nested ternary conditional operator in PHP. <?php $background_color = ($num == 0 ? 'blue' : ($num > 0 ? 'green' : 'red')); ?> Here …

Last updated 6 years, 5 months ago | 3842 views

Tags:- PHP

SSH | Add a Cron Job A corn is a time based job scheduler which runs automatically on unix-like server. It is use to schedule jobs or tasks to runs at fixted date, time or …

Last updated 6 years, 8 months ago | 3585 views

Tags:- Cron Job Linux

SQL | LIKE operator The LIKE operator of SQL is used for such kind of operations. It is used to fetch filtered data by searching for a particular pattern in where clause.   The Syntax for …

Last updated 6 years, 5 months ago | 3490 views

Tags:- SQL MySQL

Python | get all keys from AWS KMS in python with boto3 This is an example of how we can get all the CMK(Customer Master Key) from AWS KMS.  To get all keys from AWS …

Last updated 4 years, 5 months ago | 3463 views

Tags:- Python Boto3 AWS KMS

PHP | htmlentities() The htmlentities() function is used to convert all applicable characters to HTML entities.   <?php $str = '<a href="http://www.studyzone4u.com">Let's GO</a>'; echo htmlentities($str); // output will be (source code) &lt;a href=&quot; http://www.studyzone4u.com &quot;&gt;Let's …

Last updated 6 years, 6 months ago | 3461 views

Tags:- PHP

strstr() and stristr() strstr() and stristr() both are use to find first occurence of a string, but the differences are strstr( ) is case sensitive where as stristr( ) is case insensitive.   strstr() – …

Last updated 6 years, 6 months ago | 3428 views

Tags:- PHP