php - Create a login on PHPwebsite with Oauth2 of discord
Get the solution ↓↓↓it's been a while since I did php. And I tried my hand at Oauth2 for discord.
I can't do it at all and the docs also don't help me, I want my members to be able to connect with Oauth2 then in the$ _SESSION
retrieve their id, avatar. I would also like to check if they are in my discord and if so, recover their access level.
Could you help me by giving me some simple explanations with simple code examples so that I finally understand. thx.
Using : php7.3 (curl is actived)/debian 10/apache2
Edit : after try so many thinks i finaly found how its work whith this exemple code : https://gist.github.com/Jengas/ad128715cb4f73f5cde9c467edf64b00
in past i'haved so many error with curl, by deafault when i've installed curl with sudo apt-get install curl, debian taken a another one, finaly i've found how to install the good version : (using php7.3) sudo apt-get install php7.3-curl and finaly work.
Now, someone know if its possible to know if the membre are on a specific server ?
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: the process class relies on proc_open, which is not available on your php installation.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.