本文整理匯總了PHP中xajax::decodeUTF8InputOn方法的典型用法代碼示例。如果您正苦於以下問題:PHP xajax::decodeUTF8InputOn方法的具體用法?PHP xajax::decodeUTF8InputOn怎麽用?PHP xajax::decodeUTF8InputOn使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類xajax
的用法示例。
在下文中一共展示了xajax::decodeUTF8InputOn方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: xajax
<?php
/**
* @author
*/
define(RU, "1");
//for windows-1251
require_once SERVER_PATH . '/lib/xajax/xajax.inc.php';
$xajax = new xajax();
//$xajax->debugOn();
if (RU == 1) {
$xajax->decodeUTF8InputOn();
}
$xajax->statusMessagesOn();
$xajax->errorHandlerOn();
//$xajax->setLogFile("../xajax/xajax_log/errors.log");
$xajax->registerFunction("process_form");
$xajax->registerFunction("process_browse_url");
$xajax->processRequests();
$sXajaxJavascript = $xajax->getJavascript('/lib/xajax');
示例2: dirname
function admin_xajax_live()
{
if (!$this->admin_xajax_live_flag) {
$this->admin_xajax_live_flag = true;
include_once dirname(__FILE__) . '/xajax.inc.php';
include_once dirname(__FILE__) . '/xajax.class.php';
global $admin_xajax_live;
$admin_xajax_live = new xajax();
$admin_xajax_live->setCharEncoding('utf-8');
$admin_xajax_live->decodeUTF8InputOn();
$admin_xajax_live->registerFunction('ChangeStatus');
$admin_xajax_live->registerFunction('AdminResponse');
$admin_xajax_live->registerFunction('AdminSound');
$admin_xajax_live->registerFunction('AdminDecline');
$admin_xajax_live->registerFunction('AdminChatHistory');
$admin_xajax_live->registerFunction('AdminPostdata');
$admin_xajax_live->registerFunction('EndChats');
$admin_xajax_live->registerFunction('GetEndChat');
$admin_xajax_live->registerFunction('AdminExit');
$admin_xajax_live->processRequests();
}
}