Skip to content

Instantly share code, notes, and snippets.

View TymianekPL's full-sized avatar
❤️
Busy killing MySQL/MariaDB

Tymianek TymianekPL

❤️
Busy killing MySQL/MariaDB
View GitHub Profile
@Jengas
Jengas / index.php
Last active October 30, 2024 06:26
Discord oauth2 example PHP
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
ini_set('max_execution_time', 300); //300 seconds = 5 minutes. In case if your CURL is slow and is loading too much (Can be IPv6 problem)
error_reporting(E_ALL);
define('OAUTH2_CLIENT_ID', '1234567890');
define('OAUTH2_CLIENT_SECRET', 'verysecretclientcode');