In today lesson we will discuss abstract classes and interfaces in php and talk about difference between it. Abstract classes are implements with adding key word abstract. Abstract classes can have properties and methods. But unlike simple classes methods in abstract...
PHP
PHP. OOP. Static properties and methods
PHP supports static properties and methods. For declaration of static method or property php has got static keyword Accessing to static properties and methods doesn't suppose object creating. While trying to access a static property through class object you will get...
PHP. OOP. Properties and methods scope
We continue to learn basic principles of OOP in PHP. Today we will discuss properties/methods scope. There three modifiers in PHP: public - public properties/methods can be accessed anywhere. protected - protected properties/methods can be accessed in class and child...
PHP. OOP. Classes inheritance
In this lesson we'll continue to learn OOP in PHP. I recommend you to watch last lesson for your understanding of toda topic. Today we'll discuss classes inheritance. Inheritance in php oop is one of the basic and key concept. Two others are encapsulation and...
PHP. Intro to OOP. Classes. Objects. Constructors
Today we'll begin series of tuts about OOP (object oriented programming). First of all we'll talk about OOP basics - classes, objects and constructors. Why do you need to use OOP in your projects? Thee say, OOP is difficult for understanding. But it's not true. OOP...
Cookie and SQL injections
In this lesson we'll consider COOKIE, which is similar with SESSIONS. Also we'll discuss problem with safety - SQL injections. COOKIE is similar with SESSIONS. You can store any data of application in cookie. But what is difference between cookie and session? Cookie...
PHP sessions
Today we will discuss sessions in php. It helps browser to identify user in different pages. We will apply session in our web application. First of all we call session_start function, which starts session. It is very important, that this function must be called before...
Form validation server side
Today we'll consider data validation on server side with build-in php functions. Any html form is potential danger for your project because of information from this form. User not necessary wants to hurt you. He can enter some spaces. Spaces are not a problem, but you...
Submit form to php
In this lesson you will learn how to submit form to php. Each of you were registering on sites, entering login and password and so on. After this lesson you can submit any data to server and make simple validation. You can submit form to the server with two methods -...