php - getimagesize returns bool(false) -


i have created wordpress plugin can choose file media uploader:

    <input type="text" id="clb_setting_logo" name="clb_plugin_options[clb_setting_logo]" value="<?php echo esc_url( $options['clb_setting_logo'] ); ?>" />     <input id="upload_logo_button" type="button" class="button" value="<?php _e( 'choose image', 'clb' ); ?>" />     <span class="description"><?php _e('choose image button.', 'clb' ); ?></span> 

when choose image media uploader path taken field #clb_setting_logo can seen above.

within function try access dimensions this:

if (!empty($options['clb_setting_logo'])) {     $imagesize = getimagesize($options['clb_setting_logo']); 

it runs on 2 servers, on server getimagesize returns bool(false), why? first thought happens because normal file path taken - this: "http://exmaple.com/wp-content/uploads/2016/02/test.png" - works on other installations.

does know something? thanks!


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -