Page 28 of 56

How to get current date and time using perl

Last updated on November 11th, 2024 at 11:31 amOne effective way to show the server’s date and time in Perl is by using the functions sprintf and localtime. While there are several ways to retrieve the date, I am choosing the simplest method to get the current date with Perl. We are also using strftime […]

How to remove non alphanumeric characters using PHP

Last updated on August 30th, 2022 at 04:14 pmNon-Alpha numeric characters are any which is not A-Z,a-z or 0-9. In this tutorial we will discuss on how to remove or replace non alphanumeric characters using php. We have two examples in the demo one is removing the non alphanumeric characters and the other is replacing […]

How to hide javascript errors from browser

Last updated on November 11th, 2024 at 02:04 pmTo hide JavaScript errors from the browser, you can use the function suppressJSError(). This function helps keep any JavaScript errors from appearing on the webpage, as shown in the code below. This is often used in production to hide non-critical JavaScript errors from users or to prevent […]

How to Fix div at the Top or Bottom of a Web Page (With Examples)

Last updated on May 8th, 2025 at 08:13 amWant to stick a header at the top or a footer at the bottom of your page that stays put while scrolling? Here’s a beginner-friendly guide to doing just that using CSS. Goal Fix a div so that it always remains: Method 1: Use position: fixed This […]

« Older posts Newer posts »