500 internal server error PHP

There are several ways to occur 500 Internal server Error. Sometimes we can not assess why does it comes? Then First need is to check Error Logs from the server...

Read More » Posted on 2016-05-26 08:00:24

PHP Internal Server Error Htaccess

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

Jquery Preload Images script with example

In web pages, Loading Images are slow down the page speed. At the time, using Slideshows or Hide and show of images will take time to load after clicking Next..

Read More » Posted on 2016-05-19 07:20:39

Jquery Javascript

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 Clean URL function script

This is simple function to make clean urls. It supports english and other UTF-8 language characters(like tamil, hindi, arabic..) in the urls. Using preg_replace to remove special characters in the..

Read More » Posted on 2016-05-04 08:23:31

PHP UTF8 URL

PHP Thumbnail Image creation Script with Example

Here, we are using imagecopyresampled to resize the image. It will resize with smoothing of image in less CPU usage. And it results better than imagecopyresized, Following working example..

Read More » Posted on 2016-04-29 08:59:15

PHP Files Images

PHP Array Merge with preserve keys

Here are two arrays, use UNION array operator to merge $array1 and $array2 with preserve keys and no transformation of keys and values. $array1 = array( 1..

Read More » Posted on 2016-04-17 05:48:42

PHP Array Array Merge

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 Image or Video duplicate check with MySQL

It is easier to check duplicate or changed file like images, videos, text files and so on. Syntax $sha_hash = sha1_file(file_path); sha1_file() is using the US Secure Hash Algorithm 1 it..

Read More » Posted on 2016-04-17 05:35:42

PHP MySQL Files

Set Netbeans as Default IDE in Linux Ubuntu

Step 1: Open terminal and goto the following directory, cd /usr/share/applications/  Step 2: Find and list netbeans.desktop file ls -al | grep netbeans Step 3: Open and Edit netbeans.desktop file and Just..

Read More » Posted on 2016-04-13 02:41:06

Ubuntu Linux Netbeans