Topic: PHP

Laravel Request Lifecycle Explained Step by Step

When a request hits a Laravel app, many things happen before the final HTML or JSON response comes back. If you are new to Laravel, this can feel confusing because you write a route and a controller, but the framework do

Read More...

How to prevent SQL injection

!Prevent SQL Injection A SQL injection attack consists of insertion or "injection" of a SQL query via the input data from the client to the application i.e web browser. A successful SQL injection exploit can read sensiti

Read More...

Test sending emails in PHP with XAMPP and MailHog

Sending mail with PHP is easy. We can test it with a local SMTP server. MailHog is very useful for this purpose. MailHog MailHog is program thats creates a local SMTP mail sever for testing purposes. Let's see how to con

Read More...

PHP 05: PHP comments

Comments are the part of the PHP code , that is not executed. It's a note note to the person who is reading the code. Usage of comments - Let other programmers / developers understand what is written and what the code do

Read More...

PHP 04: PHP Tags

PHP codes must be enclosed by PHP tags. When PHP parser pareses a file , it looks for opening and closing PHP tags. It tells the parser when to start interpreting and when to stop. Reason for parsing in this manner is al

Read More...

PHP 03: Run first PHP program

In this tutorial we'll learn how to run PHP program on local pc. For this purpose, You must have PHP environment installed on your pc. If you don't have PHP installed and running on your pc. Just visit the following link

Read More...

PHP 02: Setting up LAMP sever on Ubuntu

LAMP stands for Linux, Apache, PHP and MySQL . It is actually a set of open source software packages which allows us to run dynamic web pages using PHP. In this post , we'll learn how to set up LAMP on local ubuntu machi

Read More...

PHP 01: Setting up PHP environment for windows

To run PHP code from our computer we need to get a PHP server. There are several ways to do this. Installing different packages are really painful. There is an all in one installer called XAMPP which allows you to run Ap

Read More...

PHP 00: Introduction to PHP

PHP (Hypertext Preprocessor) is a popular programming language. This language is used to create dynamic websites that interacts with databases. This will be a long series of post to guide the beginners to help in the lea

Read More...