Tagged: kapil sharma

0

Codeigniter insert if not exist and update if not

  [amazon_link asins=’B078LQ1W9Q,B077WY86ZT,B073Q5R6VR,B074DYBT2K,B01A8OD3S8,B078JVYMV1,B07CRGDR8L,B01ERHNUY4′ template=’ProductCarousel’ store=’urfusion-21′ marketplace=’IN’ link_id=’ 7530ba6e-6712-11e8-a101-a7a0382ddef9′] First you need to check whether the user or data is exits or not. then you can perform the update and insert operation. $this->db->where(‘user_id’,$id); $q =...

How to download multiple files at once – in single command 0

How to download multiple files at once – in single command

Suppose you have approx 1000 image files for download, then here is a command to download all them. Create a text file named it urls.txt enter all urls each url in a new line...

codility brackets opening and closing solution 0

codility brackets opening and closing solution

Codility brackets opening closing. codility brackets opening closing. codility you are given a string s consisting of n brackets opening problem solution. function isBalanced($str){ $count = 0; $ocount = 0; $ccount = 0; $length...

Push notification Android Php 0

Push notification Android Php

Hey, Today we learn how to send push notification for android in php. First create a class with following code   <?php class Pusher{ const GOOGLE_GCM_URL = ‘https://android.googleapis.com/gcm/send’; private $apiKey; private $proxy; private $output;...

Configure ejabberd xmpp on ubuntu server Part-1 0

Configure ejabberd xmpp on ubuntu server Part-1

Configure ejabberd xmpp ubuntu server     After facing so many issues and investing so many hours I write below steps for configure ejabberd. In first tourial we learn how to configure ejabbere on...

Php backtrace with proper information 0

Php backtrace with proper information

Php backtrace with proper information.   Php backtrace with proper information. we can use debug_backtrace. But debug_backtrace provide a lots of data which might be not use full for one. So for fetching more...

Simple Responsive Slider using jquery 0

Simple Responsive Slider using jquery

Simple Responsive Slider using jquery Here is a Simple Responsive Slider using jquery which works on every breakpoints. A very simple js/jquery which helps you to modify it according to your requirements. Download infinite_Image_Carousel-master

Custom linkedin button for share and auth 1

Custom linkedin button for share and auth

Custom linkedin button for share and auth <script src=”http://platform.linkedin.com/in.js”> api_key: //onLoad: onLinkedInLoad scope: r_basicprofile r_emailaddress r_fullprofile authorize:true </script> <script> function onLinkedInAuth() { IN.API.Profile(“me”) .fields(“firstName”, “lastName”, “industry”, “location:(name)”, “picture-url”, “headline”, “summary”, “num-connections”, “public-profile-url”, “distance”, “positions”,...

recursive function getting parent child 28

recursive function getting parent child

recursive function getting parent child A recursive function is a function that calls itself during its execution. This enables the function to repeat itself several times, outputting the result and the end of each...

mysql queries 0

mysql queries

mysql queries 1. Add column age and desg in emp_prof table. Mysql> use profile; Mysql>alter table emp_prof add column age int; Mysql> alter table emp_prof add column desg char(10); 2. Update all records of...