SSH | Export and Import Large Database OR Table Using SSH can be a good practice to manage the files and databases on your account. It is most important to use in the following circumstance …

Last updated 3 years, 3 months ago | 980 views

Tags:- MySQL SSH

PHP | Length of a string There is a string function called strlen() which is used to find the length of a string. It accepts a string that returns the length of the given string.  …

Last updated 3 years, 4 months ago | 714 views

Tags:- PHP

PHP | Combine two strings There are several ways to concatenate two strings in PHP. Use the concatenation operator [.] and [.=] There are two string operators that are used for concatenation. [.]:  Concatenation operator …

Last updated 3 years, 4 months ago | 3155 views

Tags:- PHP

PHP | Remove duplicate value from an array  Duplicate value can remove from an array by using the array_unique function. If two or more array values are the same, the first appearance will be kept …

Last updated 3 years, 4 months ago | 902 views

Tags:- PHP

PHP | Access specifiers An access specifier is a code element that is used to determine which part of the program is allowed to access a particular variable or other information.   There are three …

Last updated 3 years, 4 months ago | 822 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 3 years, 4 months ago | 1594 views

Tags:- PHP htaccess

PHP | magic function In PHP all functions start with __ names are magical functions. Magical functions always live in a PHP class. The definition of the magical function is defined by the programmer itself. …

Last updated 3 years, 4 months ago | 798 views

Tags:- PHP

List  List is a language construct and is similar to an array. It is used to assign a list of variables in one operation. If you are using PHP 5, then the list values start …

Last updated 3 years, 4 months ago | 799 views

Tags:- PHP

Cross-site scripting (XSS) Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications. XSS enables attackers to inject client-side script into web pages viewed by other users. A cross-site scripting …

Last updated 3 years, 4 months ago | 793 views

Tags:- PHP CodeIgniter

 PHP | implode() and explode() function implode() function is use to convert an array into a string where as explode() function is used to convert an string into an array   implode() The implode() function …

Last updated 3 years, 4 months ago | 3541 views

Tags:- PHP

PHP | Remove html tags from a string The strip_tags() function is use to remove any HTML, XML, and PHP tags from a string.   <?php echo strip_tags("Hello <b><i>world!</i></b>","<b>"); // Output will be Hello world! …

Last updated 3 years, 4 months ago | 1142 views

Tags:- PHP

MySQL | Find last insert id in the table By using the MySQL function mysqli_insert_id() we can retrieve the last inserted id in the database table.   <?php $con = mysqli_connect("localhost","user_name","user_password","db_name"); if (mysqli_connect_errno()) { echo …

Last updated 3 years, 4 months ago | 750 views

Tags:- PHP PHP-MySQL

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 3 years, 4 months ago | 749 views

Tags:- PHP

PHP | Recursion  PHP also supports recursive function call like C/C++. In such a case, a function calls itself within the function.   Note: Recursion must be incorporated carefully since it can lead to an …

Last updated 3 years, 4 months ago | 1024 views

Tags:- PHP

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 3 years, 4 months ago | 857 views

Tags:- PHP