Laravel by default uses swift mailer. If in some case you are getting issue while using swift mailer, In this case you can use PHPMailer. In Laravel 5.4 or Above, you need to do the following steps Install the PHPMailer on your laravel Application. After going to your project …
PHP
Sample code for sending push notifications
Please update the code a/c to requirements. Sample Code Please update if any better alternative.
Issue in file upload through PHP – cURL
Problem File not being uploaded on server through PHP – cURL Solution The CURLFile interface must be used to upload files. Code <?php $url = ‘http://192.168.1.94:5000/api/v1/upload-picture’; $img = ‘img/placeholder.png’; // Form-data $data_array = array( ‘id’ => 1, ‘picture_type’ => ‘user’, ‘file’ => new CurlFile($img) …
Setup openfire In Ubuntu 14.04
Port Open for installation of openfire : General Port 5269, 7777, 5229 http ports 9090 , 5222, 7070, 5262, 5275 https ports 9091, 5223, 7443, 5263, 5276 Installation steps for installing openfire In Ubuntu 14.04 — sudo apt-get update * If java is installed then …
Solution for MySQL Error : Host ‘host_name’ is blocked
If the following error occurs, it means that mysqld has received many connection requests from the given host that were interrupted in the middle: Host ‘host_name’ is blocked because of many connection errors. Unblock with ‘mysqladmin flush-hosts’ The value of the max_connect_errors system variable determines …
Openfire : Sending Push Notifications while recipient is offline
Problem : Sometimes push notifications are not sent while the recipient is offline. Chat Server : Openfire v4.0.4 Plugin : callbackonoffline Direct Download Link : https://www.igniterealtime.org/projects/openfire/plugins/callbackOnOffline.jar Readme.html : https://www.igniterealtime.org/projects/openfire/plugins-beta/callbackonoffline/readme.html Solution * To store messages, while the recipient is offline : Trigger — — Triggers `ofOffline` — …
Integrate Redis cache mechanism to make website performance faster
If there is API which needs to call again and again. To call API many times will make the website performance very slow. We can use Redis cache mechanism to make website performance faster. Why Redis? It’s a “NoSQL” key-value data store. More precisely, it …
Openfire offline notification through PHP
Question We have installed Openfire 3.10.2 on Ubuntu 12.04. Chat is working fine and for offline message management I have installed the CallbackOnOfflineplugin. When the recipient is offline, a url is called. The plugin loads the url from the plugin.callback_on_offline.url property, adds ‘to’ and ‘from’ …
Get last Last Logout details openfire using REST API
Problem :- We do have functionality for offline group push notification from server end. Application is open and go to the group message tab. Now send a message to the group so, other users of group will get message i sent. By closing (kill or …
Google calendar event which repeats yearly
Problem :- we have successfully managed to add event to google calendar through php api client, but what i want is to make that event repeat every year , such as company anniversary etc, i didn’t find that in the google documentation also ,so what …