To 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 CommentCategory: PHP / MySQL
If 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 CommentIn 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 CommentWe are going to discuss how to upload files to the remote server in CodeIgniter using CI’s FTP library. This library has limitations – SFTP…
4 CommentsIn this tutorial I would like to show you how easy to implement google like search auto complete text box with PHP, jQuery and MySql.…
1 CommentTraits are one of the most powerful feature introduced in PHP 5.4. It allow us to write maximum reusable code. Traits are like Abstract class…
Leave a CommentHey we can easily get names of all modules compiled and loaded in the PHP using PHP’s built-in function called get_loaded_extensions(). This function returns the…
1 CommentThe Collection class in Laravel is really awesome. In Laravel, Eloquent returns result in the collection object. The class contains a lot of handy methods…
Leave a CommentThe Request facade will grant you access to the current request that is bound in the container.Remember, if you are in a namespace, you will…
Leave a CommentSometimes you may want send the rendered view in the ajax response instead of showing on the browser. To return html in the ajax response…
2 CommentsIn this post, I want to show you how to send emails using PHPMailer with GoDaddy SMTP details. Godaddy requires you to utilize its SMTP…
19 CommentsOne of the Laravel 5 awesome feature is Attribute casting. Casting attribute means changing the attribute values to a particular type. for example Boolean, integer,…
Leave a CommentIn this post I would like to share with you code snippet, which you can use to flatten nested array into one array with string…
Leave a CommentLogin Throttling is also called rate limiting which is very useful to increase the security of the application by protecting login form. Basically the…
2 CommentsYou often have to display money numbers in business applications like eCommerce apps. So in general we fetch the value from the database and print…
1 Comment