Jump to content

URL file-access is disabled in the server configuration


xcandiottix

Recommended Posts

This is my first rodeo with a windows based sever. I copied over some code from one of my linux hosted sites to get some base code going and I get the following warnings when trying to resize a photo before displaying:

 

Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in D:\Hosting\5935799\html\browse.php on line 171

 

Warning: getimagesize(http://www..com/upload/picture.jpg) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in D:\Hosting\5935799\html\browse.php on line 171

 

Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in D:\Hosting\5935799\html\browse.php on line 195

 

Warning: getimagesize(http://www..com/upload/picture2.jpg) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in D:\Hosting\5935799\html\browse.php on line 195

 

It seems to be a problem with the server configuration but I'm not really sure where to begin to get this one running. Does anyone have an experience in this?

 

Thanks much,

K.Candiotti

I have never tried to do this, but I know there are php.ini settings to allow (or not allow) opening a url as if it is a file.  See http://us3.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen.  Apparently, with Windows there are some limitations.  If the file you are trying to access is on your system, use a file path instead of a url (it is probably more efficient and therefore faster).  If it is not on your system, you may be stuck.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.