Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to fetch file name, extension and basename from url in php?

Fetch file name, extension and basename from url in php <?php $file = ‘http://localhost/brrrr/wp-content/uploads/2019/11/New-Business-card-4.jpg’; $ext = pathinfo($file); echo $ext[‘dirname’] . ‘<br/>’;   // Returns folder/directory echo $ext[‘basename’] . ‘<br/>’;  // Returns

Read More »

How to shrink navbar on scroll ?

Shrink navbar on scroll  <style>.nav_logo_scroll{ width: 120px !important;     transition: all 0.5s linear; margin-left: 45px}.jassi{ width: 100% !important;   transition: all 0.5s linear;}</style> <script>jQuery(document).ready(function($){ $(window).scroll(function() { if($(document).scrollTop() >=1) {

Read More »

How to insert data in database with ajax in cordova?

Insert data in database with ajax in cordova. Paste in function.php file  function insert_cordova_message(){  if(function_exists(‘date_default_timezone_set’)) {    date_default_timezone_set(“Asia/Kolkata”);} // then use the date functions, not the other way around$date =

Read More »