PHP remove Emojis or 4 byte characters

Emojis or BMP character have more than three bytes and maximum of four bytes per character. To store this type of characters, UTF8mb4 character set is needed in MySQL. And it is available only in..

Read More » Posted on 2016-06-14 06:55:19

PHP UTF8mb4 Emojis

HTML input type file accept only Image or other specific file types

When uploading a file from our machine, we browse to the files which shows all files of all file types in the opened directory. It makes tedious to find our..

Read More » Posted on 2016-07-16 08:29:10

HTML Files

PHP mkdir permission denied Ubuntu Linux

Permission denied issue mostly come in two cases, In first case, check the directory which you want to access have write permission To check, cd /opt/lampp/htdocs/parent-dir/ ls -al For image-dir directory..

Read More » Posted on 2016-05-05 08:39:27

PHP Apache Ubuntu Linux

PHP Associative Array to slice or get first n elements and preserve keys

From an array, want to get first 5 elements with keys preserved. The array_slice() with 2nd and 3rd parameter will limit the array to get first 5 elements. $array =..

Read More » Posted on 2016-04-17 05:44:28

PHP Array Array Slice

PHP trim only the exact string with example

In PHP, trim(), rtrim() and ltrim() functions with character_mask that trim characters in all the possibilities ways of prefix. $my_text = 'Reading RBI books on travel is a best policy.'; #rtrim($string,..

Read More » Posted on 2016-05-25 07:14:21

PHP Trim

PHP Page Views Count Example

Every website or blog is needed page count to show the top visiting pages. It helps visitors to look around the interesting posts and for analysis. Some methods are..

Read More » Posted on 2016-05-29 08:55:09

PHP MySQL Web optimization

HTML input type File like Button CSS with example

When using input type="file" for upload option in web pages we come across there is a raw Browse button with text near "No file selected". In well designed form it..

Read More » Posted on 2016-08-26 08:29:18


JQuery AJAX post JSON data to PHP with example script

Mostly JQuery receives response from the server as JSON data formate from PHP. But some times we need to send bunch of data to the server. For that this..

Read More » Posted on 2016-06-17 07:41:58

PHP Jquery Javascript JSON AJAX

MySQL Multiple timestamp column with CURRENTTIMESTAMP in One table

From MySQL version 5.6.+ allow to add multiple timestamp datatype column and can set Default as CURRENT_TIMESTAMP Previous versions of MySQL allow to add multiple timestamp datatype column but NOT..

Read More » Posted on 2016-06-14 06:51:05


Difference between MySQL storage engines InnoDB and MyISAM

MySQL supported storage engines are, MyISAM InnoDB Memory CSV Merge Archive Federated Blackhole And, Most commonly using storage engines are InnoDB and MyISAM. Let see the Difference between them in the following table,   Inno..

Read More » Posted on 2016-08-26 08:20:07

MySQL MyISAM InnoDB Comparision