如何检查服务器是否能够在运行时处理SOAP请求?我需要在脚本执行之前验证它.
我最近几天在使用Cassandra.我正在使用PHPCassa库.
当我尝试使用以下代码时,它无法正常工作.
require_once('phpcassa/connection.php');
require_once "phpcassa/columnfamily.php";
// Create new ConnectionPool like you normally would
$pool = new ConnectionPool("newtest");
// Retrieve a raw connection from the ConnectionPool
$raw = $pool->get();
$rows = $raw->client->execute_cql_query("SELECT * FROM User WHERE KEY='phpqa'", cassandra_Compression::NONE);
echo "<pre>";
print_r($rows);
echo "<pre>";
// Return the connection to the pool so it may be used by other callers. Otherwise,
// the connection will be unavailable for use.
$pool->return_connection($raw);
unset($raw);
Run Code Online (Sandbox Code Playgroud)
它没有返回,我也尝试过以下查询
$rows = $raw->client->execute_cql_query("SELECT * FROM User WHERE age='32'", cassandra_Compression::NONE);
$rows = …Run Code Online (Sandbox Code Playgroud) 我创建了一个测试模块名称Mytest.在保存模块中的值时,我得到一个空白页面并说"抱歉!尝试访问受限文件.".有谁知道,为什么会发生这种情况.对此的任何帮助都非常值得赞赏.