Error handling & workarounds allow_url_fopen and allow_url_include is disabled on the server [duplicate]
问题 This question already has answers here : How to scrape websites when cURL and allow_url_fopen is disabled (4 answers) Closed 6 years ago . 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