Loading

Tuesday, February 12, 2008

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);
}
}
}
}

}

?>

SHARE TWEET

Thank you for reading this article ajaxrequest.class.php - AJAX Code Search With URL https://x-tutorials.blogspot.com/2008/02/ajaxrequestclassphp-ajax-code-search.html. Also a time to read the other articles.

0 comments:

Write your comment for this article ajaxrequest.class.php - AJAX Code Search above!