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

Error #5

Closed
KaRpIkS opened this issue Mar 4, 2017 · 2 comments
Closed

Error #5

KaRpIkS opened this issue Mar 4, 2017 · 2 comments
Labels

Comments

@KaRpIkS
Copy link

KaRpIkS commented Mar 4, 2017

$tracker = array('http://bt01.nnm-club.cc:2710/0055b4edb53392b5ac41b79d29131591/announce');
$hash = array( '0e1b1a2f5be209e1157c148faaf8afd3a3aa3824' );

$info = $scraper->scrape( $hash, $tracker );

echo "<pre>";
print_r( $info );
echo "</pre>";

Warning: file_get_contents(http://bt01.nnm-club.cc:2710/scrape?info_hash=%0E%1B%1A%2F%5B%E2%09%E1%15%7C%14%8F%AA%F8%AF%D3%A3%AA8%24): failed to open stream: HTTP request failed! in ...\scraper.php on line 243

К удалённым объектам обращаться только через сокеты или cURL'ом.

@medariox medariox added the bug label Mar 4, 2017
@medariox
Copy link
Owner

medariox commented Mar 5, 2017

Thanks for the bug report.

I just pushed new version, could you please try it and report back? It's working fine on my end with the code example you provided.

I'm not sure what you want to do with cURL exactly, but I'd like to avoid an external dependency.
Make sure that allow_url_fopen is active in your PHP config file.

@KaRpIkS
Copy link
Author

KaRpIkS commented Mar 5, 2017

@medariox Thank you everything works. The error is no more!

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

No branches or pull requests

2 participants