问题
require('phar://neo4jphp.phar');
$client = new Everyman\Neo4j\Client();
if($client)
{
echo 'Connected';
}
i am using neo4j version 1.9 RC1, i am able to access server via myip:7474, Curl is Enabled.
Error is :
couldn't connect Host[7]
Please Help
回答1:
In order to create the client, you must specify the transport you want to use, if you want to use Curl:
$client = new Everyman\Neo4j\Client(new Everyman\Neo4j\Transport\Curl('localhost', 7474));
or with Stream:
$client = new Everyman\Neo4j\Client(new Everyman\Neo4j\Transport\Stream('localhost', 7474));
来源:https://stackoverflow.com/questions/16386164/neo4-giving-error-uncaught-exception-everyman-neo4j-exception-with-message