Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check if the link is image or url php

$headers = get_headers('https://media.giphy.com/media/BvvBz8BnRqZOg/giphy.gif', 1);
if (strpos($headers['Content-Type'], 'image/') !== false) {
    echo "Work";
} else {
    echo "Not Image";
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #link #image #url #php
ADD COMMENT
Topic
Name
6+5 =