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 »