You 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 CommentAuthor: Praveen Anaparthi
11+ years of IT industry experience holding a wide range of skill sets and roles with significant work on PHP, Node.js, Python, Ruby, Docker, React.js, Microsoft Azure, Azure DevOps, Windows PowerShell, Shell script, Jenkins, MongoDB, SQL, MySQL, Apache, Nginx. etc. It is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.
PHP 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 CommentIf you find yourself doing any kind of disk-based I/O with PHP, you’ll undoubtedly come across the need to verify that a file exists before…
Leave a CommentWhen using Ajax there will be chances, where you will need to cancel the Ajax call. I found Aborting is useful while building a search…
2 CommentsIn this post, I will explain about binding events to models in Laravel 5.Laravel’s Events feature is really cool. It basically allows you to trigger…
Leave a Commenta { color: #00e; } a:visited { color: #551a8b; } a:hover { color: #06e; } a:focus { outline: thin dotted; } a:hover, a:active { outline:…
Leave a Comment/* Smartphones (portrait and landscape) ———– */ @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { /* Styles */ } /* Smartphones…
Leave a Commentblockquote { background: #f9f9f9; border-left: 10px solid #ccc; margin: 1.5em 10px; padding: .5em 10px; quotes: “\201C””\201D””\2018″”\2019”; } blockquote:before { color: #ccc; content: open-quote; font-size: 4em;…
Leave a Comment.transparent { filter: alpha(opacity=50); /* internet explorer */ -khtml-opacity: 0.5; /* khtml, old safari */ -moz-opacity: 0.5; /* mozilla, netscape */ opacity: 0.5; /* fx,…
Leave a Comment