Topic: PHP

How to 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 sensitive data from the databa

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 configure MailHog.

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.

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 allowing to embed in different types of documents like HTML.

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.

Read More...