Archive

Tag PHP

Installing laravel 5 on WAMP or XAMPP

Posted on July 7, 2017 by Suresh Kamrushi in PHP

+30 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

+60 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

+110 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

+10 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

+23-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

+21-5 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

+23-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

+47-19 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

+53-5 Here how you can create clean SEO friendly url: Normal practice of using url: 1) http://sforsuresh.in/user.php?u=123 2) http://sforsuresh.in/user.php?u=123&cat=php 3) http://sforsuresh.in/page.php 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.

Removing index.php from url of codeigniter in WAMP

Posted on August 10, 2013 by Suresh Kamrushi in PHP

Only three steps are require to remove index.php from url in Codeigniter in WAMP environment.
1) Create .htacess file in parallel to application holder and just copy past the following code:

How Mysql reduce overhead from PHP!!!!!

Posted on August 10, 2013 by Suresh Kamrushi in Mysql, PHP

I enjoy to play with Mysql queries. what i learn from my past experience is,if you are doing a maintainance project or you are handling a project which is developed by some other developer and he mess up with the database definitions, than you “WILL LEARN A LOT NEW THINGS”…………. How?

HEREDoc in PHP

Posted on August 10, 2013 by Suresh Kamrushi in PHP

A way to delimit strings is the heredoc syntax: <<<. After this operator, an identifier is provided, then a newline. The string itself follows, and then the same identifier again to close the quotation.