ajaxrequest.class.php - AJAX Code Search ~ Ajax Training, Learn Ajax Video Tutorials Online, Ajax Examples
Ajax Training, Learn Ajax Video Tutorials Online, Ajax Examples: ajaxrequest.class.php - AJAX Code Search

ajaxrequest.class.php - AJAX Code Search

<?php

require_once(dirname(__FILE__) . '/request.class.php');

class AjaxRequest extends HttpRequest {

function AjaxRequest() {
parent::HttpRequest();
$this->convertValues($this->request);
}

function convertValues($request) {
if (extension_loaded('iconv')) {
foreach($request as $paramName=>$paramValue) {
if (!is_array($paramValue) && is_string($paramValue)) {
$this->request[$paramName] = iconv("UTF-8", _GLOBAL_ENCODING, $paramValue);
} else if (is_array($paramValue)) {
$this->request[$paramName] = $this->convertValues($paramValue);
}
}
}
}

}

?>

Related Posts by Categories

0 comments:

Useful Links on Adobe Flex

Your Ad Here

Latest Books on Adobe Flex