Posts from PHP

What is a function in PHP and why we use it?

By informerfrk

A function in PHP is a self-contained block of code that use to performs a specific task in the program. In another word, we can say that PHP function is a piece of code that can .... Read More

Protect website from SQL Injection in PHP

By informerfrk

From the name SQL Injection, many of you can guess that someone injects SQL into your PHP application. Well, obviously it is not good to let a user inject SQL code inside your web .... Read More

Disable direct access to the PHP include file

By informerfrk

In many times it may be needed to include one or more PHP file to other PHP files. We do it so that we don’t have to write the same code again. But what happened if you acces.... Read More

How to get the file size in PHP?

By informerfrk

To get the size of a file in PHP you can use filesize function of PHP. The filesize function in PHP is already inbuilt function from PHP 4. Below is the syntax of this function: .... Read More

How To Convert Comma Separated String into Array?

By informerfrk

Suppose you have a comma separated string which you want to convert into an array for any purpose. How will you do that? Here in this tutorial, I am going to give you the simple co.... Read More

Difference between PHP include and require satements

Difference between PHP include and require satements

By informerfrk | May 31, 2017

The include and require statements in PHP used to take all the file content in a specific file and copy it in the file that uses the PHP include and requires statements. These functions can take text code or markup and include it in that file. The main purpose of using PHP include and require statement is […] Read More