Count Script Execution Time Snippets


03 March, 2011   

Count Script Execution Time

28 October, 2013   

C code example how to measure time of execution

05 February, 2014   

We created a slide show that allowed the user to move through an array of images.

16 June, 2012   

You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites with full page ads, or to redirect visitors to the site's new domain name. You can add also a timer to the script that will allow the page to redirect and the visitors will not need to click a link or type in the new URL.

13 October, 2012   

Code example to show current date and time

13 July, 2011   

This example uses count to count the number of times 0 appears among v1-v3 (putting it in z1) and likewise for v4-v6 (putting the count in z2). Then, if z1 is 3, then 9999 is placed in v1-v3 using a do repeat loop. The same is done for v4-v6.

To get a user count the code below goes in your "global.asa" file which needs to go in the root of your web site. You web site must be properly set up as an application in IIS for this file to fire and do it's thing.

Have you ever wanted to know how much memory one of your PHP scripts uses when it runs? You might want this information if your script has a memory leak or takes a long time to execute. If that's the case then there's a great built-in function called memory_get_usage, which will display the exact amount of memory being used by your script. This...

22 November, 2011   

Check out the Time in the Status Line at the bottom left.

09 September, 2014   

Simple Javascript snippet that lets you toggle a group of checkboxes on or off at the same time. This is the format for your HTML form.

MySQL code to find all duplicates in a database column(s)n.

20 December, 2011   

The example below defines a loop that starts with i=0. The loop will continue to run as long as i is less than, or equal to 5. i will increase by 1 each time the loop runs.

13 November, 2012   

Creating and maintaining an effective JavaScript toolbox can greatly reduce development time. This script will show you how to include specific snippet modules on individual pages.

20 December, 2011   

The example below defines a loop that starts with i=0. The loop will continue to run as long as i is less than, or equal to 5. i will increase by 1 each time the loop runs:

30 April, 2011   

Countdown to the start of Summer in the Northern Hemisphere: June 21, 2011; 1:16 PM Eastern Daylight Time (EDT)

Example shown here how to preload the images with jquery in WordPress.

Portable code to count the number of bits

21 January, 2011   

Sometimes the time set on your server isn't accurate to what your local time is. If you can't change it, you can adjust it yourself. If your server thought it was 12 midnight, but it was really 7 pm, this will roll the $today variable back five hours to be correct.

19 November, 2014   

Enable a link after a set period of time.

18 January, 2012   

You can combine with SQL JOIN clause to show department name with count.