Web Developer Notes - Page 8

php

How to Upload Files to a Server Using PHP

Last updated: 21.02.2026
Views: 265
Uploading files to a website is a common task. Consider uploading files to a PHP server using the POST method. This will require a form with the "file" field type and an enctype attribute with a multipart/form-data value. We will not use AJAX in this example, but will do a regular HTML form submission. HTML [html] <form method="POST" enctype="multipart/form-data"> &l...
JavaScript

Swipe Events on Touch Devices in JavaScript

Last updated: 21.02.2026
Views: 151
Every day sensory devices are being introduced into our lives. These devices have specific events, unlike the desktop. One of these events is the swipe. Especially often have to deal with it when developing a mobile version of the site. Swipe events on touch devices allow developers to detect gestures like swiping left, right, up, or down, commonly used for navigation or interaction. These even...
JavaScript

How to Get Max Value in JavaScript Array

Last updated: 21.02.2026
Views: 182
A short note about finding the maximum value in a JavaScript array with numeric values. The Array object in JS does not have its own max method. To find the maximum value in a JavaScript array, you can use several methods. Here are the most common and efficient approaches: 1. Using Math.max() with the spread operator The Math.max() function returns the largest number from a set of numbers...
jQuery

Drop down menu (jQuery)

Last updated: 10.10.2025
Views: 281
Drop down menu can be done without JavaScript, only with the help of CSS. With :hover. But the JavaScript menu has its advantages. The most important thing is the delay in the disappearance of the drop-down elements. Let's consider a simple menu with one nesting level. We will write the code using jQuery. Although jQuery is not the most modern tool, this library continues to be used in many pr...
code

Configuring HTTPS for Nginx

Last updated: 21.02.2026
Views: 231
HTTPS stands for Hypertext Transfer Protocol Secure, and it is the secure version of HTTP, the protocol used for communication between your web browser and a website. HTTPS encrypts the data being sent and received, ensuring that the communication is secure and private. Some time ago I used VPS for some of my projects. I needed to run PHP and NodeJS on the server and set up domains for these p...