dakata__92
Super Moderator
Колеги, как да разбера типът на дадено изображение ако се намира на урл http://example.com/image.php . Дали е png, jpeg или gif? :?:
Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
stackoverflow.com каза:PHP:<?php # the request $ch = curl_init('http://www.google.com'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_exec($ch); # get the content type echo curl_getinfo($ch, CURLINFO_CONTENT_TYPE); # output // text/html; charset=ISO-8859-1 ?>
Хехе тъкмо това гледах :Дdakata__92 каза:http://bg2.php.net/manual/bg/function.exif-imagetype.php
Това мисля, че е решението на въпросът ми!
и затва не го постнах тук.exif isnt installed![]()
$props = getimagesize("http://www.example.com/gifs/logo.gif");
$type = $props['mime'];