Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Readme update + quick fix for file_get_contents #16

Merged
merged 3 commits into from
Oct 13, 2018

Conversation

Jarvvski
Copy link
Contributor

Some other changes were thrown in for the readme, but those were just my editor removing left over white space which I think is fine to just accept.

Readme update is specific for linux, as you need to allow the web server user access to the cache directory to write the json files in.

file_get_contents isn't the best way to get files on a remote server, plus it doesn't seem to run that well at times. Curl is generally a better practice for PHP when obtaining remote files via HTTP or HTTPS protocols.

[Wed Oct 10 11:31:47.053350 2018] [php7:warn] [pid 17763] [client 5.151.214.0:48461] PHP Warning:  file_get_contents(https://r3icons.titanmods.xyz/markers.json): failed to open stream: Connection timed out in /srv/www/replays.7cav.us/public/inc/classes/Replays.php on line 298, referer: https://replays.7cav.us/

Now use curl instead. Obvilusly better implimented as a utility
function/class. Works for now though
@alexcroox alexcroox merged commit 1b05400 into alexcroox:master Oct 13, 2018
@alexcroox
Copy link
Owner

Thanks for the PR!

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

Successfully merging this pull request may close these issues.

3 participants