<?php $URL="http://cor-forum.de/forum/images/smilies/zombie.png"; list($width, $height) = getimagesize($URL); echo 'width: '.$width.'<br> height: '.$height; ?>
The result is the following result:
width: height:
EDIT and I get the following warning:
Warning: getimagesize ( http://cor-forum.de/forum/images/smilies/zombie.png ): Could not open stream: HTTP request failed! HTTP / 1.1 403 Forbidden in / home / webpages / lima -city / regnum-forum / html / DATEIEN / scheisstest.php on line 6
- whereas it displays the correct values ββif I use another image, for example
$URL='http://getfavicon.appspot.com/http://google.com?defaulticon=1pxgif';
EDIT: I would like to include the inclusion of external images in the forum, but first I want to check their size. So what can I do to get the size of the image whose server is βblocking meβ?
EDIT: allow_url_fopen is set to ON, yes.
php
Blauhirn
source share