Search
 
SCRIPT & CODE EXAMPLE
 

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";
}
Comment

PREVIOUS NEXT
Code Example
Php :: php number format comma and decimal 
Php :: laravel new line in language file 
Php :: html special characters php 
Php :: remove a specific element from an array php 
Php :: php artisan storage:link not working 
Php :: advanced custom forms php 
Php :: wordpress 404.php redirect to home 
Php :: laravel check if string is url 
Php :: how to fetch all column values php 
Php :: file_put_contents 
Php :: laravel routes return view in web.php 
Php :: php string left 10 characters 
Php :: php switch case array 
Php :: laravel module make migration 
Php :: php faker long text 
Php :: Date Format Conversion in controller or Blade file 
Php :: php autoload classes 
Php :: laravel destroy or delete 
Php :: eloquent where parentheses 
Php :: check if string contains substring php 8 
Php :: replace all occurrence char in string php 
Php :: ckeditor laravel 
Php :: concat php 
Php :: simple_form_for id 
Php :: laravel where on relationsship column 
Php :: php foreac 
Php :: drop column table in migration if exist in laravel 
Php :: Creating default object from empty value 
Php :: how to build laravel database 
Php :: Eloquent models events 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =