title: send whatsapp message using php
body: <p><strong>hi.
  i want to send whatsapp message using php. i run this code</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  require_once 'Chat-API-master/src/whatsprot.class.php';
  $username = "6285648145xxx";
  $nickname = "ardi";
  $password = "password"; // The one we got registering the number
  $debug = true;
  
  // Create a instance of WhastPort.
  $w = new WhatsProt($username, $nickname, $debug);
  
  $w-&gt;connect(); // Connect to WhatsApp network
  $w-&gt;loginWithPassword($password); // logging in with the password we got!
  
  $target = '62811304xxxx'; // The number of the person you are sending the message
  $message = 'Hi! :) this is a test message';
  
  $w-&gt;sendMessage($target , $message);
  ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>But i have result this code at my browser</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>tx  &lt;stream:features&gt;&lt;/stream:features&gt;
  
  tx  &lt;auth user="6285648145xxx" mechanism="WAUTH-2"&gt;&lt;/auth&gt;
  
  rx  &lt;from s.whatsapp.net=""&gt;&lt;/from&gt;
  
  rx  &lt;stream:features&gt;&lt;/stream:features&gt;
  
  rx  &lt;challenge&gt;376a507c7e915642d85255fe96cb1d101fa23819&lt;/challenge&gt;
  
  tx  &lt;response&gt;200e09fa50b7c6a3fa3416878f1e165e8d7670f054ddeaa1c77278a5f8e5b881f4f9f75dce809f42cbdcf17931db8c15641399488b90e9cb74e87de94560802f98bb028af9b5967403fb278c28e06c&lt;/response&gt;
  
  
  Fatal error: Maximum execution time of 30 seconds exceeded in D:\XAMPP\htdocs\waonline\Chat-API-master\src\whatsprot.class.php on line 2609</code></pre>
  </div>
  </div>
  </p>
  
  <p>what's wrong?? please give me sollution. thanks</p>