My code is

include "src\whatsprot.class.php"; $username = "91xxxxxxxxxxxx"; //Mobile Phone prefixed with country code so for india it will be 91xxxxxxxx $password = "password";
$identity = strtolower(urlencode(sha1($username, true)));
$w = new WhatsProt($username, $identity, "WhatsApp Messaging", true);

But This part of the code

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

is giving me the following error only on remote server

"The website encountered an error while retrieving http://www.domain.com/WAPP/Chat-API-master/code.php It may be down for maintenance or configured incorrectly. "

This code runs perfectly on my local machine.

What could be wrong ?

What is the error by the way?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.