Short Circuit Evaluation and its Use and Advantages in PHP and JavaScript –...
We call it Short Circuit Evaluation (also known as minimal evaluation, or McCarthy evaluation) when a programming language DOES NOT evaluate/execute the second operand in a condition. if the first...
View ArticleRemove Dashboard Widget Boxes (Meta Boxes) from WordPress and Network Admin...
WordPress, by default shows a number of Widget Boxes in it’s admin homepage a.k.a the dashboard. These boxes are called Meta Boxes and shows Incoming Links, Plugins Feed, WordPress.org News and other...
View ArticleCompare two arrays in PHP using array_diff | Check whether arrays are equal.
You want to compare two arrays in PHP. Basically what you need is to make sure that both the arrays contain the same set of values may or may not be in the same order. You can use the built-in PHP...
View ArticleFree WordPress themes and Malicious/Devil Codes
I know it doesn’t sound good to talk bad here specially when you are writing an article after a long while. We have changed our website theme so it looks simple and loads pretty fast and we are back in...
View ArticleInstalling/Setting up PHP on WIndows 7 with IIS7 and PHP Manager
Setting up PHP with IIS on a Windows OS has never been so easy. The PHP Manager for IIS makes it really to easily install, configure, manage and troubleshoot one or many PHP versions on the same IIS...
View ArticlePretty Print JSON String with PHP and Javascript
While coding, many of us want to see a JSON string printed right in the browser in a readable format for easy debugging. In PHP, I usually convert the JSON string back to an Array and use print_r to...
View ArticleVBScript Fetch and show the content of an HTML Table from a web page
Someone wanted the code written in VBScript, which would fetch the content of a webpage, grab the html table with a specific identifier from it, and print all the text in its cells. This script loads...
View ArticlePHP find substring without breaking words or don’t cut words – MultiByte (MB)...
Often we need to extract a portion of a string specified by a length. When we use the PHP function substr to fetch a part of the string, we can only specify the length of the new string. That means,...
View ArticleSending Mails using PHP in localhost on Windows/IIS using smtp4dev
The mail function in PHP doesn’t work in Windows/IIS environment unless you set up an SMTP server and configure it. SMTP server now doesn’t come built in with Windows 7 either.So here is a quick way...
View ArticlePHP – Expire Session When Page is Refreshed or Browser Back Button is Clicked
I would not say this is a great feature to have in a web application. But many people wanted to learn how the user session of a web application can be ended if the logged in user clicks on the Back...
View Article
More Pages to Explore .....