Git | Git branch command to create, list, and delete git branch command is used to create a new branch, list all branches, and delete a branch. Branches allow developers to work on the same project …

Last updated 5 years, 4 months ago | 2527 views

Tags:- Git

PHP | Upload File By using move_uploaded_file() function we can upload file in PHP.The move_uploaded_file() function moves an uploaded file to a new location. This function returns TRUE on success or FALSE on failure. move_uploaded_file(file,newloc) …

Last updated 7 years, 2 months ago | 2525 views

Tags:- PHP

What is difference between require() and include() ? The require() function is identical to include(), except that it handles errors differently. If an error occurs, the include() function generates a warning, but the script will …

Last updated 7 years, 2 months ago | 2524 views

Tags:- PHP

Python | Ternary Operator python uses an if-else conditional statement in a single line to represent the Ternary Operator. [true] if [expression] else [false]   Let's see an example of Ternary Operator a, b = …

Last updated 5 years, 5 months ago | 2524 views

Tags:- Python

PHP | How to convert an array to a string? array to string By using implode function we can convert any array to string.  In implode function first parameter is separator which specifies what to …

Last updated 7 years, 2 months ago | 2506 views

Tags:- PHP

MySQL |  Increase the speed of a MySQL select query For increasing the speed of a query we have to do a couple of things First of all instead of using select * from table1, use …

Last updated 7 years, 9 months ago | 2497 views

Tags:- MySQL

PHP | Count number of elements in an array There are two ways to find the number of elements in an array: 1. sizeof($arr), This function is an alias of count() echo sizeof($arr); 2. count($arr) echo …

Last updated 7 years, 9 months ago | 2476 views

Tags:- PHP

PHP |What is the difference between echo and print? PHP echo and print both are used to display the output in PHP. Both can be used with or without parenthesis. The differences are small echo …

Last updated 7 years, 2 months ago | 2475 views

Tags:- PHP

Codeigniter | Types of error logging There are three message types in Codeigniter: Error Messages These are actual errors, such as PHP errors or user errors. Debug Messages These are messages that assist in debugging. …

Last updated 6 years, 11 months ago | 2467 views

Tags:- CodeIgniter

Python | Check whether the given value is palindrome or not This is an example of how to check whether the given value is palindrome or not. It takes input from the user to check …

Last updated 5 years, 1 month ago | 2465 views

Tags:- Python

SQL | Timestamp in where clause to select the date range Select date range from the timestamp column with where clause can be done by using the BETWEEN operator. BETWEEN Operator : The BETWEEN operator selects …

Last updated 6 years ago | 2459 views

Tags:- SQL MySQL

PHP | array_push() function We can add elements to an array in an easy way. There is an inbuilt function array_push() in PHP which is used to add elements to the PHP array. With the …

Last updated 7 years, 9 months ago | 2457 views

Tags:- PHP

Accessing CodeIgniter Super Object from External PHP Script (Outside CodeIgniter) Sometimes, you may need to access CodeIgniter's core features — such as models, libraries, or configuration — from a standalone PHP script that’s not within …

Last updated 1 year, 1 month ago | 2446 views

Tags:- PHP CodeIgniter

Git clone | clone git repository Git clone command creates a local copy of the existing source code from a remote repository. git clone ssh://git@github.com/<username>/<repository-name>.git To clone a project from Github:  Click on the green button …

Last updated 5 years, 4 months ago | 2444 views

Tags:- Git

Session V/S Cookies A cookie is an array of data stored by the browser on the client location and sent to the server with every request. It stores a limited amount of data about 4kb(i.e.: 4096 …

Last updated 7 years, 1 month ago | 2440 views

Tags:- PHP