Programming

Pausing PHP with sleep and usleep

Using PHP sleep() and usleep() to Pause Execution [Examples]

This short tutorial will show you how to use the PHP sleep() and usleep() functions to pause script execution for a number of seconds/microseconds, and provide some code examples. The PHP sleep() and usleep() functions both pause execution of the script, but both behave a bit differently. Why Pause/Sleep PHP Script Execution? Delaying, sleeping, or… Read More »Using PHP sleep() and usleep() to Pause Execution [Examples]

JavaScript Print to Printer, Console, Page

JavaScript Print – To the Console, WebPage, or a Printer [Examples]

You’ve searched for ‘JavaScript Print’ – so you’re probably trying to output data to the console, to the webpage or to a printer. Here’s how to do all three. Printing to the Console with console.log() The JavaScript console.log() method prints data to the JavaScript console (visible in your browsers web inspector).… Read More »JavaScript Print – To the Console, WebPage, or a Printer [Examples]