File Information in PHP

phpclassroom007

In this class you will learn file information in php basics. How to find out the file size The file size can be obtained using the filesize () function . The result will be a number

Working with Files in PHP

phpclassroom007

It is very easy task to learn working with files in php. follow this steps to get master in working with files in php. Reading a file: file_get_contents () Using the file_get_contents () function, you

Absolute and Relative Paths in PHP

phpclassroom007

File paths are a topic that usually blows the mind of newbies. But don’t worry, now we’ll put everything on the shelves. How PHP and URL paths differ When we watch our favorite

Including Files in PHP

phpclassroom007

PHP has the ability to connect PHP (and not only) files to others. Thanks to this, we can divide a large script or site layout into several parts. Include function Let’s imagine that

Dynamic Pages in PHP

phpclassroom007

A dynamic page is a PHP script that displays different content depending on the URL. In this tutorial, we will create such a page using GET parameters. Creating a dynamic page To

Passing Arrays Through a Form in PHP

phpclassroom007

You can combine multiple form elements and retrieve them as an array on the server. This is done by manipulating the name attribute . This is how you can pass an associative array: When the form

Form Handling in PHP

phpclassroom007

What is form From a developer’s point of view, a form is a collection of HTML elements, such as <input> , <select> , <textarea>, and so on, that are filled in by the user, sent to the server,

Checking for Existence and Emptiness in PHP

phpclassroom007

Situations often arise when you need to check for the existence or emptiness of a variable. PHP provides the isset () , empty () and array_key_exists () functions for this . Checking for the existence of a variable The isset () function returns true if

Custom Functions in PHP

phpclassroom007

PHP allows developers to create their own functions. Creating functions The creation of the function looks like this: First, the function keyword is written , then the name of the function (the naming rules are

Built-in Functions in PHP

phpclassroom007

PHP has a huge number of built-in functions like var_dump () ,  print_r () , unset () , phpinfo () , etc. To call a function, you need to write parentheses after its name: It’s pointless to try to