Tagged: kapil sharma

How to Fix NPM Deprecated Warnings, Errors, and Version Issues 0

How to Fix NPM Deprecated Warnings, Errors, and Version Issues

NPM is an essential tool for managing packages and dependencies in your web development projects. However, you may encounter deprecated warnings, errors, and version issues when using NPM. In this blog post, we’ll show...

0

A quick introduction of .htaccess with examples

What is .htaccess? The .htaccess file is a configuration file that affects how a web server responds to various requests. .htaccess files provide a way to make configuration changes on a per-directory basis. Why...

Php backtrace with proper information 0

Php backtrace with proper information

In PHP, backtrace is a feature that helps developers debug their code by providing information about the execution path of the code. The backtrace function generates a stack trace of the function calls that...

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...

countdown timer in php 20

countdown timer in php

countdown timer in php $dateFormat = “d F Y — g:i a”; $targetDate = $futureDate;//Change the 25 to however many minutes you want to countdown change date in strtotime $actualDate = $date1; $secondsDiff =...

get product thumb images on view.phtml 0

get product thumb images on view.phtml

get product thumb images on view.phtml <?php $_images = Mage::getModel(‘catalog/product’)->load($_product->getId())->getMediaGalleryImages(); ?> <?php if($_images){?> <?php $i=0; foreach($_images as $_image){ $i++; ?> <a href=”#” onclick=”ig_lightbox_show(-1)”> <img src=”<?php echo $this->helper(‘catalog/image’)->init($_product, ‘thumbnail’, $_image->getFile())->resize(108,90); ?>” alt=”<?php echo $this->htmlEscape($_image->getLabel());?>” title=”<?php...

Creating a Shopify App using Laravel How to Create Custom WordPress Plugin? How to Build a Telegram Bot using PHP How to Convert Magento 2 into PWA?