I've got several functions in my php app that relay on calls to file_get_contents(), file_put_contents, and getimagesize().
The problem is that when allow_url_fopen an allow_url_include are disabled in php.ini I'm getting errors on these critical functions.
Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /home/content/.../html/_sites/mysite/wp-content/themes/mytheme/functions.php on line 2534
What are the options for working around these issues?
EDIT: These are all local files on the same webserver as the calling php script. Is there a preferred method for reading/writing file contents?
cURLis enabled on the server you could transfer it to the local file system and operate on the file locally. If it's not enabled, you're pretty stuck.are all local files on the same webserver, why are you using paths that requireallow_url_fopento be enabled? Just use local file system paths and none of this will be an issue...