本文整理匯總了PHP中WebserviceRequest::ws_current_classname方法的典型用法代碼示例。如果您正苦於以下問題:PHP WebserviceRequest::ws_current_classname方法的具體用法?PHP WebserviceRequest::ws_current_classname怎麽用?PHP WebserviceRequest::ws_current_classname使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WebserviceRequest
的用法示例。
在下文中一共展示了WebserviceRequest::ws_current_classname方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: while
while ($putData = fread($putresource, 1024)) {
$input_xml .= $putData;
}
fclose($putresource);
}
}
$params = $_GET;
unset($params['url']);
$class_name = WebserviceKey::getClassFromKey($key);
$bad_class_name = false;
if (!class_exists($class_name)) {
$class_name = 'WebserviceRequest';
$bad_class_name = true;
}
// fetch the request
WebserviceRequest::$ws_current_classname = $class_name;
$request = call_user_func(array($class_name, 'getInstance'));
$result = $request->fetch($key, $method, $_GET['url'], $params, $bad_class_name, $input_xml);
// display result
if (ob_get_length() != 0) {
header('Content-Type: application/javascript');
}
// Useful for debug...
// Manage cache
if (isset($_SERVER['HTTP_LOCAL_CONTENT_SHA1']) && $_SERVER['HTTP_LOCAL_CONTENT_SHA1'] == $result['content_sha1']) {
$result['status'] = $_SERVER['SERVER_PROTOCOL'] . ' 304 Not Modified';
}
foreach ($result['headers'] as $param_value) {
header($param_value);
}
if (isset($result['type'])) {