Posts from PHP

Compress and create a zip file in PHP

By Ujwal Kumar Sahoo

In this article, we will discuss how to create a zip file and how to compress data items in it. Firstly, we have to understand what exactly a zip file is. What is a zip file? A zi.... Read More

PHP Sessions

By Sanketh

Hey Guys, In this PHP tutorial, you are going to learn about creating and using sessions in PHP. Sessions are one of the ways to create common data which can be used on any page of.... Read More

Program to verify whether given number is prime or not using PHP

By Sanketh

In this PHP tutorial, you are going to learn about what is prime number and how to write PHP program to verify whether the given number is prime or not. To check given number is pr.... Read More

How to generate random string in PHP?

By Ujwal Kumar Sahoo

In this article, we will cover how to generate random string in PHP and it’s application in various fields. Create random strings for a fixed length In this section, we will .... Read More

What are Variable Variables in PHP?

By Ujwal Kumar Sahoo

In this article, we will learn how PHP dynamically declares a variable. That is reference variable also known as Variable Variables in PHP. PHP allows the programmer to create and .... Read More

How to read and write in files using PHP

By Ujwal Kumar Sahoo

In this article, we will learn how to read and write in the file. There are 3 simple steps to do file operation : Open a file in the proper mode. Read/write contents in file. Close.... Read More

How to Parse CSV files with PHP and Insert data into MySQL database

By Ujwal Kumar Sahoo

In this article, we will learn how to read an existing CSV file and how it can be uploaded to the database. so, we will cover it in two phases: Reading an existing CSV Insert the c.... Read More

How to create a CSV file using PHP?

By Ujwal Kumar Sahoo

In this article, we are going to learn about how to create a CSV file using PHP. Before getting into the topic, first of all, let me explain, what is a CSV file? and how it plays a.... Read More