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 accept image extension from url in php?

How to accept image extension from url in php? <?php  $file_name = ‘http://localhost/brrrr/wp-content/uploads/2019/11/New-Business-card-4.jpg’; echo $file_name.”<br>”; $allowed = array(‘gif’, ‘png’, ‘jpg’); $ext = pathinfo($file_name, PATHINFO_EXTENSION); if (!in_array($ext, $allowed)) {    

Read More »

How to pick date(Date Picker) from text field with placeholder in jquery?

 pick date(Date Picker)  from text field with placeholder in jquery <html> <head> <link rel=”stylesheet” href=”//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css”> <link rel=”stylesheet” href=”/resources/demos/style.css”> <script src=”https://code.jquery.com/jquery-1.12.4.js”></script> <script src=”https://code.jquery.com/ui/1.12.1/jquery-ui.js”></script> <script> $( function() { $( “#datepicker” ).datepicker({ dateFormat:

Read More »

How to get all months in php?

Get all months in php for ($m=1; $m<=12; $m++) { $month = date(‘F’, mktime(0,0,0,$m, 1, date(‘Y’)));                            

Read More »