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.>
There are at least two PHP configuration directives that can break your script :
file_get_contents()
will not be able to fetch files that are not on the local disk
Chances are pretty low that file_get_contents()
itself will ever get disabled...
But remote-file loading... Well, it might be wise to add an alternative loading mecanism to your script, that would use curl in case allow_url_fopen
is disabled.