Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Issues with file_get_contents #28

Open
bet0x opened this issue Feb 16, 2016 · 1 comment
Open

Issues with file_get_contents #28

bet0x opened this issue Feb 16, 2016 · 1 comment

Comments

@bet0x
Copy link

bet0x commented Feb 16, 2016

You are using file_get_contents and i don't have such function enable due security reasons. Can this part be implemented with curl?

Maybe with something like:

$ch = curl_init("url");

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Accept: application/json',
    'Auth: code',
));

$data = curl_exec($ch);

curl_close($ch);

print_r($data);

To replace the stream_context_create

@lsoares
Copy link
Member

lsoares commented Feb 17, 2016

Hi Alberto,

Thanks for the suggestion.
Can you correct it and submit it? If you can't, you create an issue and
we'll solve it when we can (which can't be now, as we are in another
project for the moment).

BR


Luís Soares
luissoares.com

On Tue, Feb 16, 2016 at 6:34 PM, Alberto Ferrer notifications@github.com
wrote:

You are using file_get_contents
https://github.com/refactors/github-profile-widget/blob/master/plugin.php#L115
and i don't have such function enable due security reasons. Can this part
be implemented with curl?


Reply to this email directly or view it on GitHub
#28.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants