Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP在所需文件中找不到类_Php_Wrapper_Json Rpc - Fatal编程技术网

PHP在所需文件中找不到类

PHP在所需文件中找不到类,php,wrapper,json-rpc,Php,Wrapper,Json Rpc,我正在一个php文件中为multichain的json rpc api使用这个php包装器 我在apache错误日志中看到的错误是: PHP致命错误:在第5行的/var/www/html/new.PHP中找不到类“MultichainClient” 我不确定应该如何调整代码和包装外观: 我的代码: 该“MultichainClient”类具有名称空间。“调用”类时,需要使用名称空间和类名 $client = new be\kunstmaan\multichain\MultichainClient

我正在一个php文件中为multichain的json rpc api使用这个php包装器

我在apache错误日志中看到的错误是:

PHP致命错误:在第5行的/var/www/html/new.PHP中找不到类“MultichainClient”

我不确定应该如何调整代码和包装外观: 我的代码:

该“MultichainClient”类具有名称空间。“调用”类时,需要使用名称空间和类名

$client = new be\kunstmaan\multichain\MultichainClient();
$client = new be\kunstmaan\multichain\MultichainClient();