I am newer to implement whatsApp API in my project and I downloaded whatsapp API. I used ajaxDemo from that and set following code in my file but it is not working and give internal error
in socket.php
file.
index.php
<?php
session_start();
$_SESSION["running"] = time();
$_SESSION["inbound"] = array();
$_SESSION["outbound"] = array();
$target = "+91**********"; //conversation target number/JID
?>
socket.php
require_once '../whatsprot.class.php'; //I got error this two lines
$target = @$_POST["target"];
$username = "+91**********"; //My whatsapp account number
$password = "*********"; //static password
$w = new WhatsProt($username, 0, "WhatsApi AJAX Demo", true);
$w->eventManager()->bind("onGetImage", "onGetImage");
$w->eventManager()->bind("onGetProfilePicture", "onGetProfilePicture");
$w->connect();
$w->loginWithPassword($password);
I think there is any connection problem with socket.php
file.
Please point out me where actually problem in my code?