HTML to PDF Example

  <!DOCTYPE html> <html lang=”en-US”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″/> <title>HTML to PDF Example – PHP Kishan</title> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js”></script> <script src=”https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js”></script> <script src=”https://html2canvas.hertzen.com/dist/html2canvas.js”></script> <style> .center{text-align: […]

Read More

How to set default image on image loaded broken?

<!DOCTYPE html><html class=”” lang=”en-US”><head><meta charset=”UTF-8″ /> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js”></script><script src=”https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js”></script><!– or –><!– <script src=”https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.js”></script> –><style type=”text/css”>.image-thumb {display: inline-block;margin: 10px;}</style></head><body><div id=”product_div”><div class=”image-thumb”><img src=”image/product_01.jpg” class=”thumbnail-img” width=”100″ height=”100″></div><div class=”image-thumb”><img […]

Read More

Export Database From MySQL

# Open CMD# Step1: Change the directory folder current directory to mysql bin directory. C:UsersPHPKishan> cd D:wamp64binmysqlmysql5.7.19bin ↲ # Step2: write below command line and […]

Read More

reCAPTCHA V3 Example in PHP

<!DOCTYPE html> <html> <head> </head> <body> <?php ## reCAPTCHA V3 key define ## #client-side define(‘RECAPTCHA_SITE_KEY’, ‘reCAPTCHA_site_key’); // define here reCAPTCHA_site_key #server-side define(‘RECAPTCHA_SECRET_KEY’, ‘reCAPTCHA_secret_key’); // define […]

Read More

Multiple words of string replace with str_replace in PHP

<?php    ## Converting utf8 characters to iso-88591 manually in PHP    echo “<meta http-equiv=’Content-Type’ content=’text/html; charset=UTF-8′ />”;        function str_replace_char(){          $find = array(‘“’, ‘’’, […]

Read More

Detect Safari Browser Using jQuery

<script>if (navigator.userAgent.indexOf(‘Safari’) != -1 && navigator.userAgent.indexOf(‘Chrome’) == -1)  { alert(‘Now, You are using safari browser…’);  }else{ alert(‘Now, You are not using safari browser…’);}</script>

Read More