You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"file_get_contents() is the easiest and most widely used function to get the contents of a file. Just this simple function call could get the contents of a file for you. But if you wish to work on remote files, then you need to enable ‘allow_url_fopen’ in your ‘php.ini’ settings. But enabling ‘allow_url_fopen’ is a risk, as it has various security loop holes. So, it’s always good to disable it and look for an alternative to get the contents of a file.
Some hosts disable the function file_get_contents() for remote files. In that case you are forced to look for an alternative. In some cases file_get_contents() returns NULL or an empty string for perfectly right URLs."
We have some troubles with file_get_contents(), prefer Curl !
Activity
karlitschek commentedon Nov 8, 2012
I don´t really understand what you want to tell us here.
JFOC commentedon Nov 8, 2012
@karlitschek he might be want recommend for curl instead file_get_contents ?
FlashPanther commentedon Nov 8, 2012
Right.
I thing it's better. We have to change it for our use.
DeepDiver1975 commentedon Nov 9, 2012
@tompsy
Can you please send us a pull request for one case where you had to change this?
The team can then discuss the details. THX