How to get names of all the subfolders and files present in a directory using PHP?
Given the path of the folder and the task is to print names of subfolders and files present inside them. Explaination: In our PHP code,… Read More »
Given the path of the folder and the task is to print names of subfolders and files present inside them. Explaination: In our PHP code,… Read More »
The task is to send data of HTML form directly to JSON file. Approach: We have an HTML form containing several fields such as name,… Read More »
PHP is a very popular general-purpose scripting language which is mainly suited for web development. It was created in 1994 by Rasmus Lerdorf who is… Read More »
The try and catch are used in PHP for handling exceptions like other languages such as C++, Java, etc. An exception is unexpected result or… Read More »
Arrays in PHP are created using array() function. Arrays are variable that can hold more than one values at a time. There are three types… Read More »
Break and continue are two keywords used to control the iterations in a loop. The major difference between the two keywords is that “break” is… Read More »
How users logged in or logged out is detected? When a user satisfies the conditions for login his status changes to logged in. For a… Read More »
JSON stands for JavaScript Object Notation and is a structured format used for storing and transporting data. It acts as an interface between a server… Read More »
The scope resolution operator also known as Paamayim Nekudotayim or more commonly known as the double colon is a token that allows access to static,… Read More »
WampServer is open-source software for the Microsoft Windows operating system, developed by Romain Bourdon. It is composed of Apache web server, OpenSSL for SSL support,… Read More »
Why do we need to download CSV files? Comma-Separated Values or CSV files are an important part of computer science. Almost every dataset required for… Read More »
The file_get_contents() function in PHP is used to read the contents of a file and make HTTP requests using GET and get HTTP responses using… Read More »
The php.ini file is the default configuration file used for running applications that require PHP. It is an effective way to work on PHP’s functionality.… Read More »
We have given two strings and the task is to append a string str1 with another string str2 in PHP. There is no specific function… Read More »
self keyword: It is a PHP keyword that represents the current class and used to access static class variables or static variables because these members… Read More »