0

I have just resolved one whatsapi issue on this forum and now am confronted with another one.

I am running scripts by calling the classes in whatsprot.class.php. I can run all scripts on my local machine like a charm. But remote server doesn't like the a certain line in my script and refuses to go beyond that;

My script is;

require "src\whatsprot.class.php";

$username = "91xxxxxxxxxxx"; //Mobile Phone prefixed with country code so for india it will be 91xxxxxxxx
    $password = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$identity = strtolower(urlencode(sha1($username, true)));

$w = new WhatsProt($username, $identity, 'WhatsApp Messaging', true);

The line that my remote server doesn't cross is;

$w = new WhatsProt($username, $identity, 'WhatsApp Messaging', true);

I definitely am an amateur. So do let me know what other info would be required to demystify this issue...

user3526204
  • 509
  • 5
  • 22

1 Answers1

0

Finally the error logs told me that there was some path issue in the libraries. When I moved my executing file into the "src' directory where whatsprot.class.php was located, voilà the script started working !

user3526204
  • 509
  • 5
  • 22