Overriding shortcode defined in WordPress parent theme is pretty easy. Just use a after_theme_setup section in functions.php of the child theme; example: add_action( 'after_setup_theme', 'my_child_theme_setup' ); function my_child_theme_setup() { ...
Create your first real-time AngularJS application
In my previous article I talked about creating real-time PHP application. That was on the server side and I demonstrated a very very basic client to connect with it. Let's take that to next step and create a Javascript client with AngularJS. Code ang ...
Create your first real-time PHP application
If you ever wondered if there is a way to write a real-time web application using PHP where any event or message is delivered/pushed to all recipients as they occur, in real-time? Then you are at the right place. We'll be building a sample real-time ...
How can I test if mod_rewrite on my server is enabled and working?
Note that mod_rewrite can only be used with the web server Apache. Follow the instructions below to check whether module mod_rewrite is installed and correctly configured on your server. Create the file .htaccess and add these two lines RewriteEngin ...
Global Variables in AngularJS
I’ve followed the angularjs tutorial and I noticed that I wasn’t able to have global variables. Turns out to be actually simple but Angular doesn’t mention it. You will need to edit your app module (app.js ) var app = angular.module('appName',); //A ...
WooCommerce Per Product Shipping Price Calculation
If you have different rates depending on the item you will need to set up each one in the 'Flat Rate' shipping method and ensure it is selected on the Product itself. First, you will need to have a Shipping Class setup: Go to the menu on the left han ...
How To: Open a WordPress Menu Link In New Window or Tab?
I have come across multiple WordPress users who aren’t aware that WordPress has a bunch of functions hidden in the “Screen Options” section of multiple Administration Pages. Today I want to show you how to open links in custom menus in a new window o ...
Converting Oracle DATE types and PHP/Unix Timestamps
If you need to convert between Oracle date and PHP/Unix timestamp then you might need to implement two functions in Oracle. The following two Oracle functions implement this for DATE types. To convert a UNIX timestamp into an Oracle DATE type: CREA ...
Working with Dates and Times in Oracle and PHP
Both PHP and Oracle provide functionality manipulating dates and times. Which to use and when? If you're new to PHP or Oracle, working out how to handle dates efficiently can be tricky. You may have strategies, which you've applied successfully on o ...
CodeIgniter Support in NetBeans
Lately I’ve been doing some development using CodeIgniter (a very popular PHP framework), and I was wondering, how to get CodeIgniter support in NetBeans. So anyway, I’ve found a NetBeans plugin under the Project Kenai This plugin will allow you to ...
Using Response.Redirect in try…catch block
Use overload Response.Redirect(String url, bool endResponse) if using in try catch block.
REST Web Services calls with C#
It's really easy to call REST based web services from C#.Net. Let's see how to do it. We'll be calling Yahoo Web Services as an example here. Make REST Calls With C# The .NET Framework provides classes for performing HTTP requests. This HOWTO descr ...
MySQL Query Cache
MySQL query cache is good to cache select queries and their results and improve some performance of your database applications. So, enable query cache in just one step.