Archive

Category Archives for "Snippets"

How to get current page URL in PHP?

You can use PHP $SERVER variable for getting current page URL. Being super global variable you will get access to $SERVER in any part of PHP application. Below is a sample script getting the URL of the current page in PHP

You may find these articles helpful: How to check a variable is an […]

Continue

jQuery hide() and show()

Using jQuery, you can hide and show HTML elements with the hide() and show() methods:

   

Continue

Detect IE5 or IE6 in PHP

Certain times you need to identify IE5 or IE6 legacy browsers and pause/optimize a feature or these old browsers.

 

Continue

Count Script Execution Time in PHP

In this snippet you will learn how to count the script execution time in PHP

 

Continue

How to check if checkbox is checked

You can check a checkbox is checke or not by using the following code

Continue