Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php discord webhook

function postToDiscord()
{
    $data = array("content" => "Your Content", "username" => "Webhooks");
    $curl = curl_init("https://discordapp.com/api/webhooks/YOUR-WEBHOOK-URL-HERE");
    curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    return curl_exec($curl);
}
Comment

PREVIOUS NEXT
Code Example
Php :: woocommerce custom sale banner, sash 
Php :: php sql connection string 
Php :: laravel where column different 
Php :: how to start a session 
Php :: CAPTURAR URL PHP 
Php :: wp safe redirect 
Php :: php sort multidimensional array 
Php :: how to split url in php 
Php :: decode jwt token laravel 
Php :: strpos codeigniter php 7 
Php :: magento 2 status mode 
Php :: php get hour 
Php :: laravel session forget 
Php :: laravel eloquent merge request 
Php :: php time format 
Php :: php Access-Control-Allow-Origin 
Php :: make model controller in single command 
Php :: laravel order by 
Php :: check is domain php 
Php :: how to escape html tags in php 
Php :: collection pluck remove duplicates 
Php :: string date less than now php 
Php :: PHP auto refresh page 
Php :: get all post meta 
Php :: form_dropdown codeigniter from database is assocative array 
Php :: convert 1 digit to five digits laravel 
Php :: wordpress add submenu 
Php :: php iterate array 
Php :: loop through values of hash php 
Php :: acf get sub field 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =