by H.Thirukkumaran | Aug 8, 2017 | tip of the day
You can use array_reverse function to reverse the elements in an array in PHP. This saves you from writing a loop and copy it to another array.
by H.Thirukkumaran | Aug 8, 2017 | tip of the day
You can use asort function to sort an array by value in a key value pair array. To sort the array by value in descending order use arsort.
by H.Thirukkumaran | Aug 8, 2017 | tip of the day
The application must not lock log files unnecessarily. This practice will help you run multiple instances of same application without any clash.
by H.Thirukkumaran | Aug 8, 2017 | tip of the day
Always encode input text by user from a web page. This will help prevent script injection attack and is a good practice from security point of view.
by H.Thirukkumaran | Aug 8, 2017 | tip of the day
Encrypting contents in cookies is a good practice for security reasons. Some websites I have used keep the user’s email id in cookie in unencrypted form and I get spammed.
Recent Comments