PHP is an important back-end programming language. mostly commonly used for Website and Web Application Development. PHP is a general purpose, server-side scripting language run a web server that’s designed to make dynamic pages and applications.
Basic and Core PHP Tutorials:
- Built-in Servers in PHP: As a backend developer, one must know what is a web server. It plays a very important role when one has to host the websites live with a domain name. This article discusses in detail about it.
- First Script in PHP: Creating scripts in PHP is very simple. We just have to open the text editor and write the code. The code file must be saved in .htdocs file with the extension .php.
- Existing PHP Frameworks: This article discusses in detail about the existing PHP frameworks available in PHP.
- WAMP, MAMP, and LAMP: This article discusses about the various packages that are available for running the PHP projects.
- Variables in PHP: This article lets us know about how variables work in PHP.
- Operators in PHP: Operators in PHP define the type of operation to be performed on the operands i.e. values and variables. Operators are of great importance for any programming language. It makes problem-solving very easy.
- Datatypes in PHP: Data types available in PHP are of various types. A variable of a particular data type has its own use. In this article, we will cover up most of the internally defined data types in PHP.
- Common Programming Mistakes: Errors and a bad programming practice often frustrates the programmer and create other confusions. In this article I am will be discussing some common mistakes that beginners usually make in PHP language.
- Control Statements in PHP: Control Statements bring condition based execution concept to the program. Many times it happens that we need to execute a certain part of the program according to some condition. In order enable the program for decision making we use control statements.
- Loops In PHP: Loops are used in order to execute some block of data repeatedly or call it iteratively. Just like in other programming languages we have the same looping concepts.
- Arrays in PHP: Arrays in PHP play a very important role in data handling and storing data of the same kind.An array is basically a variable which stores multiple values of the same kind (datatype).
- Functions in PHP: Function is a piece of code that is meant to perform some particular operation. This function can be executed any number of times. PHP also has many pre-defined functions but in this article, we are going to discuss on user-defined function.
- Anonymous Functions in PHP: Anonymous functions, or lambda functions, are functions without a name. As they do not have a name, in order to be able to invoke them, we need to store them as variables. It might be strange at the beginning, but the idea is quite simple.
- Type hinting and return types: PHP is the language that allows the developer to be more specific about what functions are getting and returning. Also, we have seen the implementation of the user-defined functions in PHP in our previous post.
- Exception Handling: Exception handling is one of the important concepts in a programming world. There is always a possibility for errors that may cause the program execution to halt abruptly. It does not matter how easy and intuitive your application is designed to be, there will be bad usage from the user or just random errors of connectivity, and your code has to be ready to handle these scenarios so that the user experience is a good as possible.
- Strings: Strings in PHP can be handle easily for real life application.In programming, strings are concatenations of characters. PHP brings a whole set of predefined functions that help you in interacting with strings.
- Files in PHP: As a server – side programming language, PHP allows you to work with files and directories stored on the Web server. This is very useful, because it means your PHP scripts can store information
outside the scripts themselves. - Object Oriented Programming: Object-oriented programming approach is very different from the traditional programming techniques where a chunk of data is sent to function to function. Objects model the real – world things, processes, and ideas that your application is designed to handle.
- Constructors and Destructors: Constructors and destructors play a very vital role when we talk about object-oriented programming.So, When creating a new object, often it ’ s useful to set up certain aspects of the object at the same time. For example, you might want to set some properties to initial values, fetch some information from a database to populate the object, or register the object in some way.
- Abstract Classes: Abstract Classes in PHP were introduced in version 5. Classes defined as abstract may not be instantiated, and any class that contains at least one abstract method must also be abstract. Methods defined as abstract simply declare the method’s signature – they cannot define the implementation.
- Auto-loading Classes: Autoloading is a PHP feature that allows our program to search and load files automatically given some set of predefined rules. Each time we reference a class that PHP does not know about, it will ask the autoloader.
- Access Specifiers: Access Specifiers in PHP play a very important role in OO(object-oriented) approach to programming. It is a key paradigm in OOP is encapsulation and access protection of object properties (also referred to as member variables). Most common OO languages have three main access restriction keywords: public, protected, and private.
- Inheritance: PHP- the concept of Inheritance in OOP is the ability to pass the implementation of the class from parents to children. Yes, classes can have parents, and the technical way of referring to this feature is that a class extends from another class.
- MySQL Basics: MySQL, like most networked systems, requires you to log in with a specific user account before doing anything else. This is a fairly obvious security measure, and it limits access to the data by specifying permissions for each account.
- Connection to Database: MySQL is the most commonly used databases because of its ease of use and smooth data handling. In PHP, there are many ways through which one can connect the database to the PHP project.
- Manipulating Data using MySQL: In this article, you look at how to alter the data in a MySQL database using PHP. It involves: Inserting new records into tables using INSERT statements in PHP, Changing field values within records with UPDATE statements and Deleting records using DELETE statements.
- PDO Introduction: So far, we have worked with MySQL, and we already have a good idea of what you can do with it. However, connecting to the client and performing queries manually is not our goal. What we want to achieve is that our application can take advantage of the database in an automatic way.
- Working with PDO: Prepared statement is a feature used to execute the same SQL statements repeatedly with high efficiency. Prepared statements are very useful against SQL injections.
- Executing the PDO queries: PHP Data Objects (PDO) is the class that connects to the database and allows you to interact with it. This is the popular way to work with databases for PHP developers. PDO allows you to work with different database systems, so you are not tied to MySQL only.
- HTTP and PHP: Web servers and browsers talk to each other using HTTP (Hypertext Transfer Protocol), a set of rules that govern how to request and retrieve data from a Web server.
- HTML Forms and PHP: When we talk about building real-world applications with PHP we have to deal with the real-time data i.e. the user input, and a key part of most PHP applications are the ability to accept input from the person using the application.One of the most common ways to receive input from the user of a Web application is via an HTML form.
- Sessions: Sessions in PHP plays a very important role in handling those variables whose values must be accessed by all the pages.
- Cookies: It is basically a small file with a maximum size of 4 kilobytes that the web server stores on the users/client device.
- Get and Post method: Before sending to data to the server page for handling and operation, the page at client side performs some kind of URL encoding. The values of the corresponding variables/names are binded to each other in some way.
- Date and Time Functions: Date and Time functions are predefined in PHP. In this article, you will go through a brief description of these topics.
- Sending email: Many Web applications have a need to send email messages. For example, a contact form script typically processes a form submitted by a visitor and emails the form information to the Webmaster.
- Empty and isset functions :There are two useful functions for enquiring about the content of an array. If you want to know if an array contains any element at all, one can ask if it is empty with the empty function.
- Ordering Arrays in PHP: An array can be sorted in different ways, so there are a lot of chances that the order that we need is different from the current one.
- Useful Array functions: We are going to run into PHP array functions with amazing regularity during the course of your web design and web development. It makes sense, because arrays are one of the most useful data types we can use.
- Form Handling : PHP gives the developer a variety of ways to handle and control the forms built using HTML. The data from the HTML form can be sent to the PHP scripts using either the $_GET or $_POST. T
- Form URL/E-mail: PHP has been found to be very useful in handling the data received from the form built using HTML. PHP has provided various schemes to validate the URL and E-mail.
- Form Validation: Form validation is one of the most important parts of any user based website which collects a basic info about the user. The data entered by the user through the HTML forms must be verified. This concept is known as form validation.
These above mentioned topics covered in PHP Tutorials.