PHP getimagesize

Gandalf

Постоялец
Регистрация
27 Авг 2014
Сообщения
84
Реакции
134
Hi,

For getting better score in Для просмотра ссылки Войди или Зарегистрируйся I have to fix Specify image dimensions section.

I would like to use Для просмотра ссылки Войди или ЗарегистрируйсяPHP funcion, however I stucked :(

getimagesize working fine with:
PHP:
<?php list($width, $height) = getimagesize('http://website.ru/pic.jpg');?>

however I have to add the:
PHP:
<?php echo $this->getLogoSrc(); ?>
instead
PHP:
http://website.ru/pic.jpg

How can I make it working? This is not working:
PHP:
<?php list($width, $height) = getimagesize("<?php echo $this->getLogoSrc(); ?>");?>

any idea?
 
Thanks latteo! Works like a charm now. ;)

Wondering why eg. Magento, Joomla themes (not sure about Wordpress) don't implement this such of solution - all about SEO.... this is very helpful.
 
Назад
Сверху