Getimagesize(): URL file-access is disabled in the


#1

Hi, when I try to use the function getimagesize on my server i get an error message:

getimagesize(): URL file-access is disabled in the server configuration

I’ve tested this locally and works fine.

Appreciate if someone could help. Thanks


#2

The URL access wrapper is disabled on DreamHost. You must use the CURL library for fetching external web pages, instead. You may want to look at these topics:

http://wiki.dreamhost.com/index.php/CURL

http://wiki.dreamhost.com/index.php/Allow_url_fopen