Performing File Operations in PHP

In this article, I will discuss Performing File Operations in PHP. Since file handling is an important feature in many applications. So, all programming languages offer a library of in-built functions for file handling. As a matter of fact, PHP provides a number of methods to create, read, and manipulate files and directories. The following list displays the functions that […]

A Brief Description of move_uploaded_file() Function in PHP

This article presents A Brief Description of move_uploaded_file() Function in PHP. For the purpose of uploading a file, we use the move_uploaded(_file() function. Basically, it takes two parameters as the input. While the first parameter indicates the name of the uploaded file. Similarly, the second parameter indicates the location to which the file needs to be moved. So, both of […]

PHP Library Functions for Uploading Files

In fact, there are several PHP Library Functions for Uploading Files that we use in our script. The following section discusses these functions in brief. Brief Introduction to PHP Library Functions for Uploading Files file_exists() In order to find whether a file or directory exists or not we use this function. Before uploading a file, we need to check whether […]

Example of Uploading Files in PHP

An Example of Uploading Files in PHP is shown here. Applications and Use of Uploading Files in PHP Because many dynamic applications provide features for users to upload files, it is one of the most essential functions of a web application. Significantly, many CMS (Content Management Systems) allows administrators to upload images as well as other types of files such […]

Understanding Cookies in PHP

As a matter of fact, understanding Cookies in PHP requires learning to use the setcookie() method. Cookies in PHP allow us to store a small amount of client information. In fact, cookies are very useful in tracking users. A website may want to know the navigation behavior of its users. So, cookies help website administrators to find out which users […]

Introduction to Android App Development

In this article on Introduction to Android App Development, I will discuss briefly about Android App Development and its origin. Actually, Android App Development started in the year 2007. Brief Introduction to Android App Development Basically, Android app development is the process of creating software applications that run on the Android operating system. So, it involves writing code using Java […]

How to Use String Arrays in Java – Concept, and Examples

String Arrays in Java help us solve many programming problems that involve the use of a contiguous data structure such as arrays. A string array is nothing but an array containing strings as its elements. Basically, strings are objects in java and the string array is the array of immutable string objects. In order to create a string array, we […]

Type Casting and Type Conversion in Java

Type Casting and Type Conversion in Java convert a variable of a specific type to another type. However, there is a difference between typecasting and type conversion. Type conversion always occurs automatically. The compiler performs it. As can be seen in the following example, type conversion may be successful or may not be. Examples of Type Casting and Type Conversion […]

Anonymous Classes in PHP

The following article describes Anonymous Classes in PHP. Basically, an anonymous class in PHP is a class that doesn’t have a name, and it can be created and instantiated in a single line of code. Anonymous classes are useful when you need to create a one-off instance of a class, for example, to pass to a function as an argument […]

Examples of Global Variables in PHP

In this article on Examples of Global Variables in PHP, I will explain how to create and use global variables. Basically, there are 9 superglobals in PHP which remain available throughout the scripts. In other words, these superglobals can be accessed in any part of the script. These superglobals include $GLOBALS, $_SERVER, $_POST, $_GET, $_REQUEST, $_FILES, $_ENV, $_COOKIE, and $_SESSION. […]