Send Email with PHP

In this tutorial, I will show how you can send an email using PHP with including headers elements. It is very easy and just have to write 5-6 lines to…

Read more »

Extract Email Addresses From Text with PHP

Hello friends, today in this trick, I will show you how you can extract email addresses from long text with the help PHP code script. We will use the preg_match_all()…

Read more »

Variables Variable in PHP – Double Dollar ($$) Variable

In this trick, we will learn what is variables variable in PHP or you can say double dollar ($$) or references variable. The $x single dollar is a normal variable…

Read more »

Increase Maximum PHP File Upload Size

In this trick, we will see how we can increase the maximum file upload size in PHP. The default PHP values for upload_max_filesize is 2 MB and for post_max_size is…

Read more »

Find URLs in Text and Make Links with PHP

In this trick, we will find the URLs in text and make links with PHP code script. You may have seen that sometimes the article has URLs as a normal…

Read more »

Automatic Copyright Year in PHP

Hello guys, in this trick we will see how we can print the automatic copyright year in PHP using the PHP DateTime function, so you don’t have to update it…

Read more »

PHP Redirect to Another Page

Do you want to redirect your page to another page in PHP? Then I will show you how you can make redirection from current page to another page in php….

Read more »

Create CSV from PHP Array

We will use fputcsv() function to create a CSV from PHP array. Look at the code below. Create CSV from PHP Array $data = array( array(45, 32, 64, 78, 47),…

Read more »

Get Current Page URL in PHP

Do you want to get the current page URL in PHP then check this code below? In this trick, we will use the $_SERVER super global variable and get the…

Read more »

Count Script Execution Time in PHP

If you want to check how much time your code is taking then you have to write script execution time functionality. We will use microtime() function to check execution time….

Read more »