are there mechanisms, to disable file_get_contents() function working?

前端 未结 3 1926
既然无缘
既然无缘 2021-01-03 14:03

i use file_get_contents function to grab data from sites and store the data in database. it will be very inconvenient for me, if one day the script will start not working.

3条回答
  •  鱼传尺愫
    2021-01-03 14:12

    It is possible to disable certain functions using disable_function. Furthermore the support of URLs with filesystem functions like file_get_contents can be disabled with allow_url_fopen. So chances are that file_get_contents might not work as expected one day.

提交回复
热议问题