How to remove Laravel cache

Posted on December 4, 2018 by Suresh Kamrushi in PHP

+10 Clearing Laravel application cache using artisan commands is very easy to do. Sometimes it is very difficult to see changes on web pages due …

Deploying Codeigniter project from local to live server

Posted on November 5, 2018 by Suresh Kamrushi in Mysql, PHP

+10 Here I am sharing how you can deploy your Codeigniter project to production server using cPanel. For making it live you need to purchase …

Difference between singleton and factory pattern

Posted on September 2, 2017 by Suresh Kamrushi in PHP

+30 ##Singleton The single pattern is an often used pattern in many applications when only a single instance of a resource is required. The most …

Installing laravel 5 on WAMP or XAMPP

Posted on July 7, 2017 by Suresh Kamrushi in PHP

+60 Follow below steps to configure/install Laravel 5.4 on WAMP or XAMPP servers. To install you need composer and wamp (for XAMPP also you can …

PayUMoney: PHP integration using Codeigniter

Posted on July 3, 2017 by Suresh Kamrushi in PHP

+12-2 Follow the below steps to integrate PayUMoney into Codeigniter: To download the complete code click here. For core php integration Click here. View More:Payumoney …

PayUMoney: PHP payment gateway integration

Posted on May 7, 2017 by Suresh Kamrushi in PHP

+24-4 Today i have integrated PayUMoney to my website, thought of sharing. Here i am sharing how a developer can integrate PayUMoney payment getway to …

Setting netbeans as my default PHP IDE on ubuntu

Posted on January 3, 2017 by Suresh Kamrushi in General

+20 Whenever I am trying to open any PHP file, it does not show NetBeans option in “open with” in Ubuntu. I did following changes …

How to convert Base64 string from IOS to image in PHP

Posted on March 31, 2016 by Suresh Kamrushi in PHP

+12-1 Today I learn how you can store images in folder, posted using IOS or Android application to PHP server. APP need to registered a user and …

wordpress creating custom widget area

Posted on December 30, 2015 by Suresh Kamrushi in PHP

+13-2 Today i have created a custom widget area in my theme. Thought of sharing it. Follow below two easy steps to enable it: 1) …

PHP 7 new features list

Posted on October 19, 2015 by Suresh Kamrushi in PHP

+24-5 Today google about new enhancement and featured introduced in PHP 7 and found that PHP 7 is really having a lot of new functions …

override codeigniter native session

Posted on October 6, 2015 by Suresh Kamrushi in PHP

+16-3 Struggling a lot with codigniter session issue. So I thought of using database for storing session but it did not solve my problem either …

Codeigniter storing session data in database

Posted on July 22, 2015 by Suresh Kamrushi in PHP

+26-7 Due to the limitation of storing cookies in browser, we can not store bulk data in session. If we want to store more data we …

WordPress : Custom theme location for menu

Posted on June 16, 2015 by Suresh Kamrushi in PHP

+11-2 Today I learn how you can add new menu location in wordpress theme. Here I am sharing details how to do it. Step 1: …

Drupal-7 how to use token in block body

Posted on May 7, 2015 by Suresh Kamrushi in PHP

+24-5 By default block body does not support Drupal token. To parse token in block body you need to install Token filter. Following are the …

Drupal 7: Adding custom fields for Profile page.

Posted on April 1, 2015 by Suresh Kamrushi in PHP

+13-2 DRUPAL 7 If you want to add additional fields for profile and registeration pages in Drupal-7 follow following steps: 1) Enable (if not enable) …

Sending email from localhost

Posted on March 18, 2015 by Suresh Kamrushi in PHP

+51-21 Now developer can test email functionality before deploying to the production or staging server in his local environment itself. Just we need to change …

Auto login to WordPress using user email id or id

Posted on March 10, 2015 by Suresh Kamrushi in PHP

+15-1 Using inbuilt functions of WordPress user can do auto login for the application. As a client requirement my wordpress need auto login using user …

Genrating SEO friendly url using .htaccess and modrewrite

Posted on September 29, 2014 by Suresh Kamrushi in PHP

+54-8 Here how you can create clean SEO friendly url: Normal practice of using url: 1) 2) 3) You can just rewrite …

Creating Contact us page in Drupal 7

Posted on September 10, 2014 by Suresh Kamrushi in PHP

+16-2 Following are the steps to enable, configure and adding Contact us form: Enabling Contact module: Login to Admin and click on “Modules” link from …

RSS feeds generator

Posted on September 1, 2014 by Suresh Kamrushi in PHP

+210 RSS is an easy way to provide contents of your sites in form of XML. RSS is written using XML, so we can define our …

What is the difference between SMTP server mail() and PHP mail()

Posted on April 9, 2014 by Suresh Kamrushi in PHP

PHP support mail() function for sending mails. And in general we use it as it fast and easy to do it. But by doing this we for exactly what we are doing this. Because when we use mail() native function of php it goes to Spam box and not in inbox of the intended recipient.

Generating ERD using PHPMyAdmin

Posted on March 5, 2014 by Suresh Kamrushi in Mysql, PHP

Today I need to generate ERD for my Database. If you search on net you will get number of people suggest Workbench for it but as i am using PHPMyAdmin as an GUI for my Mysql database I just don’t want to install workbench only for generating ERD. And above all when PHPMyAdmin support it (from 3.4 version) than what more I need.

How to access remote mysql server using local phpmyadmin

Posted on February 28, 2014 by Suresh Kamrushi in Mysql, PHP

It is very tough to connect your remote mysql box especially when you are working with VPN. Initially I used telnet to connect to mysql box than I try to use workbench. Workbench is good and better than using telnet but again it consume more memory and if VPN got disconnected it just hanged. It so irritating. Than I try to integrate my PHPMyAdmin to configure to access remote mysql server and it is really very easy to setup.

PHP: Calculating Business days from given dates or for particular period.

Posted on January 29, 2014 by Suresh Kamrushi in PHP

PHP has numbers of datetime related functions which we can use to get Business day between two dates. Even if we have list of holidays we can also consider that for calculating.
Here is a simple example how you will get Business day in a particular period:

My first experience with Codeigniter

Posted on August 10, 2013 by Suresh Kamrushi in PHP

Earlier, say 1.5 years back I have created a project in cakephp and my experience is good with CakePHP.Now when i try to create another project with cakePHP version 1.2 i am unable to do that. I unable to generate files from console it is giving me error regarding PHP that some of the functions are deprecated.