Articles on Trending Technologies

Technical articles with clear explanations and examples

PHP Program to Check if all rows of a matrix are circular rotations of each other

Prabhdeep Singh
Prabhdeep Singh
Updated on 15-Mar-2026 230 Views

A rectangular array called a matrix is made up of rows and columns. And circular rotations entail rotating the array's elements so that after one rotation, the last member is in the first position and the other elements are shifted to the right. We are given an N*N matrix in this problem, and our objective is to determine whether all of the rows are circular rotations of one another. If they are, print "YES, " otherwise print "NO." In order to better understand the issue, let's look at some cases with explanations below. Input 1 mat ...

Read More

How to Upload Image into Database and Display it using PHP

Tarun Singh
Tarun Singh
Updated on 15-Mar-2026 16K+ Views

In modern web applications, it is common to store images in databases for various reasons, such as security, easy management, and scalability. PHP provides an easy way to upload images to databases and display them on web pages. In this article, we will learn how to upload images into database and display them using PHP. We will implement the following functionality − HTML form to upload an image Upload an image to the server using PHP Store file data in the database using PHP and MySQL Retrieve images from the database and display on the web page ...

Read More

Online Group Chat application Using PHP

Rushi Javiya
Rushi Javiya
Updated on 15-Mar-2026 6K+ Views

A web-based online group chat application enables users to communicate in real-time through text messaging. This tutorial demonstrates how to build a complete group chat application using PHP, MySQL, and Bootstrap for a modern interface. Prerequisites Installation Requirements: XAMPP or WAMP server with PHP support MySQL database Web browser for testing Step 1: Database Setup First, create the database and table structure for storing chat messages − CREATE DATABASE onlinechatapp DEFAULT CHARACTER SET utf8; GRANT ALL ON onlinechatapp.* TO 'admin'@'localhost' IDENTIFIED BY 'admin'; USE onlinechatapp; CREATE TABLE ...

Read More

How to Increase File Upload Size in PHP

Satish Kumar
Satish Kumar
Updated on 15-Mar-2026 21K+ Views

In today's digital world, file uploads are a common occurrence, be it uploading pictures to social media platforms or sharing documents through email. However, PHP's default file upload size limit can cause inconvenience to users, restricting them from uploading files of larger sizes. In this article, we will explore ways to increase the file upload size in PHP. Understanding PHP File Upload Size Limit PHP is a server-side scripting language that is widely used for developing dynamic web pages. When a user uploads a file to a PHP-based website, the file size limit is imposed by the PHP ...

Read More

Simple Contact Form using HTML CSS and PHP

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 5K+ Views

A contact form is a great way to allow users to reach out to you directly through your website. Contact forms are a crucial aspect of any website, as they allow visitors to get in touch with the website owner. A contact form on website provides an easy way for visitors to ask questions, make inquiries, or provide feedback. In this tutorial, we will be discussing how to create a simple contact form using HTML, CSS, and PHP. Step 1: Create the HTML Form The first step in creating a contact form is to create its structure ...

Read More

Difference Between Golang and PHP

Sabid Ansari
Sabid Ansari
Updated on 15-Mar-2026 3K+ Views

Both Golang and PHP are popular programming languages used for web development. Although both languages are suitable for building web applications, they have significant differences in terms of their syntax, performance, and popularity. In this article, we will discuss the key differences between Golang and PHP in detail and compare them in a tabular form. Golang vs PHP Here are the main differences between Golang and PHP − Category Golang PHP Syntax Golang has a strict syntax with mandatory semicolons and braces PHP has a flexible syntax with optional semicolons and braces ...

Read More

PHP program to Count Inversions of size three in a given array

Rudradev Das
Rudradev Das
Updated on 15-Mar-2026 302 Views

Inversion count is a measure that determines how far an array is from being sorted. For inversions of size three, we look for triplets (i, j, k) where a[i] > a[j] > a[k] and i < j < k. This helps analyze the sorting complexity of an array. Array: {5, 4, 3, 2, 1} // reverse order Triplets: (5, 4, 3), (5, 4, 2), (5, 4, 1), (5, 3, 2), (5, 3, 1), (5, 2, 1), (4, 3, 2), (4, 3, 1), (4, 2, 1), (3, 2, 1) Output: 10 Array: {1, 2, 3, 4, 5} ...

Read More

Should I Learn Python or PHP for the Back End?

Tushar Sharma
Tushar Sharma
Updated on 15-Mar-2026 496 Views

Choosing between Python and PHP for backend development is one of the most common decisions new developers face. Both languages have established themselves as powerful tools for server-side programming, but they serve different purposes and excel in different areas. PHP was specifically designed for web development and has powered millions of websites since the 1990s. Python, originally created for general-purpose programming, has gained significant traction in web development while maintaining its dominance in data science and machine learning. Understanding their key differences will help you make an informed decision based on your career goals and project requirements. ...

Read More

PDF generation from XHTML in a LAMP environment

Satish Kumar
Satish Kumar
Updated on 15-Mar-2026 426 Views

The LAMP environment is widely used for web development, and it is an acronym for Linux, Apache, MySQL, and PHP. This environment is an open-source platform that is easy to use and deploy. PDF format is commonly used for sharing and exchanging documents over internet. However, generating PDF documents can be a challenging task in a LAMP environment, especially when converting XHTML documents. In this article, we will explore different methods used for PDF generation from XHTML in a LAMP environment. What is XHTML? XHTML stands for Extensible Hypertext Markup Language, which is a markup language that is ...

Read More

PHP and Xvfb usage

Satish Kumar
Satish Kumar
Updated on 15-Mar-2026 1K+ Views

Xvfb (X Virtual Frame Buffer) creates a virtual display in memory without requiring physical display hardware. This allows running graphical applications in a headless environment. When combined with PHP, Xvfb enables server−side execution of GUI applications through PHP scripts. Why Use Xvfb with PHP? PHP typically handles server−side logic without direct graphics support. However, certain scenarios require running graphical applications on servers − Automated testing of GUI applications Browser automation for web scraping Image/video processing with graphical tools Running desktop applications headlessly Installation Ubuntu/Debian: sudo apt-get update sudo apt-get install xvfb ...

Read More
Showing 21951–21960 of 61,297 articles
Advertisements