Last updated on August 8th, 2022 at 09:55 amThis is a simple script that can capture screen resolution of a user. We are using screen function available in javascript. Here are some of the attribute you can use while dealing with screen As we can see screen has attributes like availWidth availHeight width height colorDepth […]
Page 41 of 58
How to encode and decode string using JavaScript
Last updated on November 13th, 2024 at 09:35 amThis JavaScript code defines two functions, str_to_num and num_to_str, to convert a text string to a sequence of numbers and vice versa, with a basic encoding/decoding method Function str_to_num Function num_to_str HTML CODE DEMO
How to Use ob_start() in PHP to Control and Modify Output Buffering
Last updated on May 7th, 2025 at 11:55 amIn PHP, output buffering allows you to control when and how your script’s output is sent to the browser. By default, PHP sends output (like echo statements) to the browser immediately. However, with output buffering, you can capture this output, modify it if needed, and send it […]
Last updated on December 22nd, 2022 at 07:00 amCertain requirements in production environment [Linux/Unix/AIX] demands a need to have SSH without password prompt from one server to another under some user id. How to accomplish that? Here is the solution and tips on how to approach this . First of all let us take 2 […]