Code |
Context$query = "Código_abierto.html"
$url = "http://es.wikipedia.org/w/api.php?action=parse&format=php&page=C%C3%83%C2%B3digo_abierto"
$http_response_header = array(
"HTTP/1.0 200 OK",
"Date: Wed, 08 Feb 2012 12:55:40 GMT",
"Server: Apache",
"X-Content-Type-Options: nosniff",
"Cache-Control: private",
"MediaWiki-API-Error: missingtitle",
"Vary: Accept-Encoding",
"Content-Length: 138",
"Content-Type: application/vnd.php.serialized; charset=utf-8",
"X-Cache: MISS from sq33.wikimedia.org",
"X-Cache-Lookup: MISS from sq33.wikimedia.org:3128",
"X-Cache: MISS from sq71.wikimedia.org",
"X-Cache-Lookup: MISS from sq71.wikimedia.org:80",
"Connection: close"
)
$content = array(
"servedby" => "srv250",
"error" => array(
"code" => "missingtitle",
"info" => "The page you specified doesn't exist"
)
)
$content = $content = file_get_contents($url); //Results are ready in XML format
$content = unserialize($content);
$content = $this->_clean_wikihtml($content['parse']['text']['*']);
WikiController::load() - APP/controllers/wiki_controller.php, line 56
Object::dispatchMethod() - APP/cake/cake/libs/object.php, line 118
Dispatcher::_invoke() - APP/cake/cake/dispatcher.php, line 227
Dispatcher::dispatch() - APP/cake/cake/dispatcher.php, line 194
[main] - APP/webroot/index.php, line 109