I have some issues on my server in running getimagesize on remote url images.
For example if I run this code on my local server it works fine and returns OK:
<?php
$file = 'http://inspiring-photography.com/wp-content/uploads/2012/04/Culla-bay-rock-formations-Isle-of-Uist.jpg';
$pic_size = getimagesize($file);
if (empty($pic_size))
{
die('FALSE');
}
die('OK');
?>
But if I run the same code on my server I cannot make it work properly. Can you help in determining which settings shall I ask to enable?
I think some of these may be involved:
- mod_security
- safe_mode
- allow_url_fopen
Can you help me in determining the right configuration to get this solved?
Thank you very much in advance.