Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
require('phar://neo4jphp.phar'); $client = new Everyman\Neo4j\Client(); if($client) { echo 'Connected'; }
我正在使用 neo4j 1.9 RC1 版本,我可以通过 myip:7474 访问服务器,Curl 已启用。
错误是:
couldn't connect Host[7]
请帮忙
为了创建客户端,如果要使用 Curl,则必须指定要使用的传输:
$client = new Everyman\Neo4j\Client(new Everyman\Neo4j\Transport\Curl('localhost', 7474));
或使用流:
$client = new Everyman\Neo4j\Client(new Everyman\Neo4j\Transport\Stream('localhost', 7474));