Last updated on August 19th, 2022 at 09:57 amParse nginx | apache logs using PHP and send an email Send an email to admin or website owner when ever the logs show 404 or any response code of your choice. This script can be used as a cron and is run on everyday basis to […]
Page 39 of 56
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 […]
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 […]