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…
Leave a CommentTutorials / Programming tips Posts
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…
Leave a CommentIn 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…
Leave a CommentAnother 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…
Leave a CommentCalling non-static methods as static method has been deprecated in PHP7 and my be removed in the future versions. The below example will output: Deprecated:…
2 CommentsPHP 7 is improved current PHP namespace implementation by introducing the concept of Group Use. This is the one of the coolest improvement to namespaces…
Leave a CommentHi there guys! We are going to look at a very simple trick that will save your time if GMail SMTP blocked. Almost in all…
Leave a CommentYou can define a constant by using the define() function or by using the const keyword outside a class definition as of PHP 5.3.0. Once…
Leave a CommentPHP 4 constructors were preserved in PHP 5 alongside the new __construct().PHP 4 constructors are methods that have the same name as the class they…
1 CommentHere I present an example and a short tutorial on anonymous classes in PHP.Anonymous classes are new to PHP which are included in PHP7. An…
1 CommentPHP while loops execute a block of code while the specified condition is true.In PHP, we have the following while looping statements: while – loops…
Leave a CommentRewriteEngine On #This bit rewrites your host name to include www RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,NC,L] #This bit does the codeigniter magic…
Leave a CommentIn this post, I would like to show you how to configure multiple environments in WordPress. By using this technique you can deploy your WordPress…
Leave a CommentTo remove the index.php, create a file called .htaccess at the root/web/ of your YII2 site. You can find out more about .htaccess here, but…
1 CommentIn this post I would like to show you ,How to Add an existing project to GitHub using the command line with simple steps. Open…
Leave a Comment