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:24PHP Internal Server Error Htaccess
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:21PHP Trim
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..
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:27PHP Apache Ubuntu Linux
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:31PHP UTF8 URL
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:15PHP Files Images
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:42PHP Array Array Merge
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:28PHP Array Array Slice
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:42PHP MySQL Files
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:06Ubuntu Linux Netbeans