Ios Push notification script

<?php class PushNotifications { // (iOS) Private key’s passphrase. private static $passphrase = ‘1234’; // Change the above three vriables as per your app. public function __construct() { exit(‘Init function is not allowed’); } // Sends Push notification for iOS users public function iOS($data, $devicetoken) { $deviceToken = $devicetoken; $ctx...Read more …
Ajit N

Improve OpenCart Security

Essential Steps To Do After Installation Immediately delete the /install/ directory chmod the config.php file in both the root and /admin/ directories to 444 Creating A Proper 404 Error Page Create a file named 404.html in your store root (this is the base directory of your OpenCart store). You can...Read more …
Ajit N

CONCAT_WS() function

MySQL CONCAT_WS() function is used to join two or more strings with a separator. The separator specified in the first argument is added between two strings. The separator itself can be a string. If the separator is NULL the result is NULL. Syntax : [crayon-590521e8c8469424486535-i/] [crayon-590521e8c8470162407498/]    Read more …

Parse json data error in javascript

Whenever parse the encoded json data through jquery function $.parseJSON(data) ,It checks for json object format so parse json data error occur for the json array formated data pass in the function. To solve this issue data encode with the json_encode($data,JSON_FORCE_OBJECT).Read more …