How to Send Push notification using FCM(Firebase Cloud Messaging) using php

Firebase Cloud Messaging(FCM) is a google cloud messaging service it is used for sending notification and messages in cross-platform for android, web application and ios application, which is available at no cost.

If you want to use this service in your application please just follow below simple steps and then you can send notification using google FCM(Firebase Cloud Messaging) service.

MySQL Database Table for store user device ids and store data in table

(more…)

Delete file or directory from server using PHP

In this article I have explain how to delete file or directory from server using PHP script. please follow below steps :

For delete file or directory from server you need to use below two different functions for this process :

  1. unlink() – this function will delete the file from your server
  2. rmdir() – this function will delete a directory from your server

Note : Before this operation please make sure your file/directory is writable.

For make writable file/directory execute below command :

(more…)

How to Connect Multiple Database in Codeigniter

If you want to connect multiple database in single application with codeigniter, just follow below simple steps and setup configuration.

Set multiple database details in database.php file

You should provide all the database details in “application/config/database.php” file with defferent groups, like below examples.

Generally, you have to set default database group, like below code :

(more…)

How To Setup IPN(Instant Payment Notification) in Paypal Account

Instant Payment Notification

Instant Payment Notification (IPN) is a message service that automatically notifies merchants by paypal for the transaction related events. Merchants can use this data for the further process of any order or other payment related action in his website.

How IPN works :

Merchants create a IPN data receiver page on their website and then this URL set in his paypal account. Paypal will send all the transaction related data on that given IPN URL. When any user place a order on merchant website and complete payment from paypal then after complete payment paypal send user transaction detail send on merchant IPN listner URL and merchant process user transaction data for user order on his website.

Setting Up IPN on PayPal

The below process describe how to setup IPN in your paypal accounts for sandbox and Live both. Please follow below instructions to set up your IPN listener in your account: (more…)

Send Windows Push Notification Services (WNS) using PHP

Windows Push Notification Services (WNS) is a service to send push notifications from server to the any windows  application. using the WNS you can send toast, tile, badge, and raw updates from their own cloud service. WNS provide mechanism to send updates to your users in a power-efficient and dependable way.

 

Creating MySQL Database Table for store user device ids

  1. create database table for store user information and Device Notify URL.
  2. After create table you will store user information and user device notify url. The notify user provided by app developer, this is a user device unique url.

(more…)