php.ini file defines the maximum number of seconds a PHP script can run. If your script exceeds the time then web server will send a request timeout HTTP response error. You can change the script execution time using this one line of code <?php ini_set(’max_execution_time’, 300); //300 seconds = 5 minutes Put this code in […]
In this tutorial I will show you how to add custom text to a printed web page using CSS and JavaScript. We can do this using CSS3 by using Pseudo Elements and Generated Content. We can do this using JavaScript by using onafterprint and onbeforeprint. Adding Image to the Printed Web Page using CSS This […]
In this tutorial I will show you how to create a online code editor like Codepen, jsFiddle, repl.it etc. After reading this tutorial you will be able to create such kind of awesome tools with just few lines of code. Let’s see a demo of what we will be creating in this tutorial. View Demo […]
This post is a part 22 of Intel XDK Complete Tutorial post series. In this tutorial we will learn Intel XDK barcode API. Before we proceed with building a application using Intel XDK barcode API we first need to learn what barcode is and how we can generate barcodes using PHP. What is Barcode? A […]
When you download a font you will always find four different files. Each of these files are differentiated by their weight and style i.e., normal, bold, italic and bold-italic. You would usually use them this way: @font-face { font-family: "PT-sans-bold-italic"; src: url("fonts/PT-sans-bold-italic.ttf"); } @font-face { font-family: "PT-sans-bold"; src: url("fonts/PT-sans-bold.ttf"); } @font-face […]
Writing proper vendor prefix CSS code is a coding horror for web designers. In this article I will provide three ways to write CSS code without worrying about vendor prefixes. Generating Vendor Prefixed Code You can use CSS preprocessors like LESS or SASS. CSS code generated using this preprocessors are automatically vendor prefixed. If you […]
In this tutorial I will explain what is URL tracking parameters and how it causes different problems. And then I will show how we can solve this problems and get a best solution for URL tracking. What is URL Tracking Parameters You would be sharing your website URLs in social media sites, blog comments, forums […]
HTML5 introduced several new input type for forms. These input types allow to take more types of input data. In this tutorial I will show you the CSS selectors for styling HTML5 input elements. Styling Color Type The color type is used for taking a color code as input. This type can be styled using […]
A running Intel XDK app can have five states: background state, resume state, continue state, running state and screen lock state. Let’s see how to detect change in these states: Background State A application is said to be in background state if user switches to some other application. This can be detected using intel.xdk.device.suspend event […]
Most Commented