How to Add a Scrolling Effect into “Back to the top” Text in the Footer of the Child Theme in Genesis Framework

As we know, the Genesis Framework theme provides a link with the words “Return to top of page” on the left of the Footer. If this link is clicked, then you will be brought back to the top of the page you’re visiting without any effect. So this following modifications will show you how to [...]

Share
[Read more...]

How to Calculate The Sum and Duration of Two Different Time Using PHP

There was a question that asked to me about how to sum and find out the duration of the two different time using PHP code regarding this my article. So, this following code will answer the question. You will be able to know how to calculate the sum and duration between two different time.

Share
[Read more...]

How to Check Whether a URL Exists or Not Without Visitting The Page

This simple script is very useful for you if you want to check whether a URL exists or not without having to visit the page. This script using PHP, and I have tested it. It worked like a charm. Of course, you need to modify further the way you want, for example, this function will [...]

Share
[Read more...]

How To Know the Difference or Time Duration Between Two Dates in PHP

Have you ever got difficulty when you want to calculate the difference or the time duration between two dates by using PHP? For example, the first date is ’2009-12-01 11:12:13′, and the second date is ’2009-12-04 14:15:16′, so the difference or the time duration between this two dates will give a result as: ’3 Day(s), [...]

Share
[Read more...]

How to Know The Number of Days from Monday until Today of This Week in PHP

There was a question asked to myself how to know the number of days that calculated from Monday until today of this week by using PHP script. Well, actually, we can make a function by checking based on the day name of today, then return the value based on its day name to the function. [...]

Share
[Read more...]

Displaying Some Comma-Separated Sub-String Values from A Single String to The Checked CheckBoxes Control in PHP

Yesterday I faced a situation while I was trying to get some sub-string values that derived from a single string that being saved in database, and displayed them to the checked CheckBoxes control in PHP. Let’s say I had 5 CheckBoxes control named Applications on my form, whereas the values stored in a single string [...]

Share
[Read more...]

How to Highlight The Searched Words in PHP

Have you ever wanted to highlight one or some words that located inside a string which those words match with your search criteria? Now here is the solution how to implement it. You can also will find that this following technique will highlight both of love you and you love strings in the I love [...]

Share
[Read more...]

Sum Time with Format hh:mm:ss by Using PHP

Have you ever got the difficulty when you want to sum the two time and display its result with format hours:minutes:seconds by using PHP? Well, now you don’t have to worry about it. This following code will give you the solution.

Share
[Read more...]

How to Detect Default Client’s Browser Language Using PHP

The following code will be able to detect default client’s browser language. I have tested this code by using Mozilla Firefox (FF) version 3.5.2 and Internet Explorer (IE) version 8 browser. Both of those browsers worked like a charm! If you want to try using FF browser, go to the menu on that browser: Tools [...]

Share
[Read more...]