Post
Topic
Board Project Development
Re: [project] api.loyce.club: crowdsourcing Bitcointalk data
by
LoyceV
on 26/06/2019, 09:03:08 UTC
Not quite sure as it runs on my local servers without problems.
I noticed that the URL actually is http://api.loyce.club/crowdsourcing/merit.all.txt. Try to change the $url variable in the script. ($url = "merit.all.txt"; should be enough because script and source data is stored in the same directory).
It was:
Code:
CryptoNeed.html:$url = "merit.all.txt";
CryptoNeed.php:$url = "http://loyce.club/Merit/merit.all.txt";
CryptoNeed2.php:$url = "http://loyce.club/Merit/merit.all.txt";
That location still exists. I've implemented your suggested changes, but the error is the same.

You have an error_log, feel free to shoot me a PM with the most recent error if you wish. I can take a look.
I've renamed it to error_log.txt, so you can click it.

Have you install or/and configure MySQL? It's definitely required to build API services.
My shared hosting:
Code:
Apache Version 2.4.39
PHP Version 5.6.40
MySQL Version 5.7.26-cll-lve
Architecture x86_64
Operating System linux

Idk if Loyce knows mysql. But he already doesn’t know PHP, so that would just complicate his life. Cheesy
I don't know either one Sad

Quote
I’ll give a shot on making the API.
Thanks Smiley

As far as I know he doesnt know SQL.
Correct.

Quote
I think he is putting all the data together file by hand.
Incorrect Tongue (I update 350,000 files per week now)

It seems that Loyce did not have uploaded the adjusted the code as under the given URL it is responsing with the old version.
I postponed it until I had a bit more time. I'll try the suggestions now.

I pm'd him an "updated" version to have forms at the html one, so that the loaded script doesn't appear totally empty.
I've uploaded it to http://api.loyce.club/crowdsourcing/CryptoNeed.html but it gives some errors. http://api.loyce.club/crowdsourcing/CryptoNeed3.php.