Amoeba Solutions
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 button in the browser or refreshes the page. You might have seen this feature implemented in many online banking applications and online ticket booking sites....
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 for you to be able to send mails from your applications and test the mails you send out from PHP or any other applications using SMTP on your localhost....
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, PHP will cut the string at the specified length and will not worry about words. When you use substr for showing excerpts, it doesn’t look good with...
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 an instance of Internet Explorer in the background and asks it to load a webpage. We can then grab any DOM element on the page using Document.getElementById()....
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 print the array which throws readable output in the view-source mode. In some cases we really want to print the JSON string formatted. Use the below methods. I....
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 server. So if you are looking to setup PHP on your Windows 7 machine with IIS 7, follow the below steps. I. Enable IIS on your machine: In Start Menu,...
Filed in: Computers, PHP/MySQL
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 to our business of giving things free and expecting nothing back . We don’t ask you to sign-up, we don’t ask you to click or read...
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 function, array_diff to compute the difference of arrays. But this function just checks whether all the values of array1 is in array2 and if not returns the...
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 WordPress news. Since WordPress 3.1, the Network features are managed through a Network Admin Dashboard accessible to the Super Admins. This Network...
Filed in: PHP/MySQL, WordPress
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 operand alone can fully determine the outcome of that condition. We have been using this concept in our codes always. All PHP guys must be familiar with this...

Page optimized by WP Minify WordPress Plugin