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 :: create session in wordpress 
Php :: composer require laravel/ui not working laravel 7 
Php :: php create temporary file 
Php :: php nested array contains 
Php :: setup_postdata not working 
Php :: only alphabets and space is allowed validation laravel 
Php :: highlight search text in php 
Php :: php get extension from string 
Php :: re migrate laravel 
Php :: for install perticular version in vue with laravel 
Php :: php put file in ftp server 
Php :: Date time format for laravel validation 
Php :: Script timeout passed, if you want to finish import 
Php :: create a exporter in laravel command 
Php :: Check duplicate email using Jquery validation 
Php :: php multiple line string 
Php :: get current page slug 
Php :: for loop php continue to next item 
Php :: array to object php 
Php :: php escape special characters 
Php :: yii2 confirm 
Php :: getoriginal laravel 
Php :: laravel date validation 
Php :: php8.1 extensions 
Php :: oxygen upload font 
Php :: header cross origin using php only for our domains and subdomain 
Php :: php fwrite new line 
Php :: php get domain name from url 
Php :: How to display data from MySQL database into HTML table using PHP 
Php :: capitlise php 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =