vendredi 29 juillet 2016

JSON-RPC PHP class not found error

I am using this php wrapper for multichain's json rpc api: https://github.com/Kunstmaan/libphp-multichain in a php file.

I'm not sure how I should adjust my code and I'm reluctant to adjust the libraries so I wanted to check this understanding:

<?php
   require_once 'libphp-multichain/src/be/kunstmaan/multichain/MultichainClient.php';
   require_once 'libphp-multichain/src/be/kunstmaan/multichain/MultichainHelper.php';
   $client = new MultichainClient("http://107.170.46.124:port",{usr},{pwd});
   print_r($client);

The error I see in apache error log is:

PHP Fatal error: Class 'MultichainClient' not found in /var/www/html/new.php on line 5

Previously I had the wrong question on here which was referring to a php error treating MultichainClient as a function

Aucun commentaire:

Enregistrer un commentaire