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 create login page with session in wordpress.

create login page with session in wordpres <?phpsession_start();if (isset($_SESSION[‘ID’])){ echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’/login-dashboard”;</script>’;} <?php if(isset($_POST[‘submit’])) { $email=$_POST[’email’]; $password=$_POST[‘password’];                 global $wpdb;      

Read More »

How to choose two dates (date range) from text field?

How to choose two dates (date range) from text field? <html> <head> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js”></script> <script src=’https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js’></script> <script src=’https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js’></script> <script src=’https://cdnjs.cloudflare.com/ajax/libs/jquery-date-range-picker/0.20.0/jquery.daterangepicker.min.js’></script> <link rel=’stylesheet’ href=’https://cdnjs.cloudflare.com/ajax/libs/jquery-date-range-picker/0.20.0/daterangepicker.min.css’> <script type=”text/javascript”> $(document).ready(function() { $(‘#date-range-filter’).dateRangePicker({ format: ‘DD/MM/YYYY’,

Read More »