How to change XAMPP / Apache Port

In this tutorial you’ll learn how to change XAMPP port. Follow the below shown steps, Open your XAMPP folder, access apache -> access conf(C:\xampp\apache\conf) Open the httpd.conf file with your favorite text editor […]

Fixing Database Connection working slow on windows 8

Today I just want to share one useful tip on fixing slow database connection issue on Windows 8 machines.Today I got this issue on my machine after new installation of LAMP stack. After playing around with the configurations […]

See if Value Exists in PHP Array

in_array() is the function to Check if a value exists in an array using PHP. Here is an example of how it is used: –

I hope you like this Post, Please feel free to comment below, […]

Tracking the script execution time in PHP

Hi there guys! Today I am going to share a very useful snippet that you can use to see the execution time of your script while debugging your script. Tracking the script execution time in PHP is very easy with below simple […]

Check if a domain is Registered with PHP

Today I would like to share a very simple PHP code snippet that lets you know if a given specific domain is registered or available for purchase or not.To check if a domain is registered or not we will use the PHP’s […]

Increase PHP Script Execution Time Limit

Today I would like to show you increasing PHP script execution time limit using ini_set() function. PHP default script execution limit is 30 seconds. In my recent project to prevent the script from timing out, I had to […]

Magic Constants in PHP

Today I would like to given quick introduction on PHP’s magic constants. PHP provides a set of predefined constants and which are available on any script which it runs. You can also create your own constants by using […]

How to Compress Strings using PHP

In this post I would like to talk about string compression in PHP. There are several algorithms out there which have been designed for specific usage to achieve best results in the compression. Based on the data you need […]

MySQL max function

In this tutorial you will learn how to get maximum value from the specified column of table using MySQL’s max() function. We can easily use max function with select statement. You can also use Max function with the Having […]

PHP 7 – Closure

Another cool new future in PHP 7 allows to bind a closure to a specific object on run-time with the addition of Closure->call() function. This method takes the object as it’s first argument, followed by any arguments […]

DMCA.com Protection Status