Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback to downloading via file_get_contents() if curl is not availible #2

Merged
merged 1 commit into from
May 11, 2012

Conversation

bxt
Copy link
Contributor

@bxt bxt commented Mar 4, 2011

Hi,
I have included a little condition, so that it deos not fail if no curl is availible: If curl is installed, use it, and if not, just use file_get_contents(). This will allow to easily fetch remote content. However, it stll doesn't work if allow_url_fopen is disabled, and it could fetch local files too, but the only other solution would be some (for this simple class) overkill socket logic.

gilbitron added a commit that referenced this pull request May 11, 2012
Fallback to downloading via file_get_contents() if curl is not availible
@gilbitron gilbitron merged commit c0e3c70 into gilbitron:master May 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants