I have already discussed PHP function and told you how to create a function in this article – What is a function in PHP and why we use it? There I have also shown you how t.... Read More
Here in this tutorial, I am going to show you another code snippet which will show you how to get the current page URL using PHP. Well, there is a super global variable available i.... Read More
__autoload in PHP is called a magic function. This function is so useful. But many of new PHP programmer may not know what this function actually does and when they should use this.... Read More
Whenever you open a PHP file with your server path, it runs the PHP code. It will never display you the PHP source code. Whenever you put some PHP code inside that file, it will ru.... Read More
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
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
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
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