title: Using JavaScript, how might I be able to create a function that calls from a PHP file to add keys and properties to a JSON file?
body: <p>So I'm using Discord.JS to create a Discord Bot, and I have a command</p>
  
  <pre><code> if(command === "addme") {
   //code here
   return message.reply(`Added ${message.author} to Database!`);
   };
  </code></pre>
  
  <p>how do I make it call a PHP function from a file that adds a key and a property to a JSON file?</p>
  
  <p>I'm stuck on where to begin here.  I've tried solutions from other problems people have posted on this site, but I can't find anything that solved mine.</p>
  
  <p>Thanks if you can help!</p>