Skip to content

file_get_content cause problems #329

Description

@FlashPanther

"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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions