function run_self_tests() { global $MYSITE; global $LAST_UPDATED, $sqlite, $mirror_stats, $md5_ok; //$MYSITE = "http://sg.php.net/"; $content = fetch_contents($MYSITE . "manual/noalias.txt"); if (is_array($content) || trim($content) !== 'manual-noalias') { return array("name" => "Apache manual alias", "see" => $MYSITE . "mirroring-troubles.php#manual-redirect", "got" => $content); } $ctype = fetch_header($MYSITE . "manual/en/faq.html.php", "content-type"); if (strpos($ctype, "text/html") === false) { return array("name" => "Header weirdness. Pages named '.html.php' are returning wrong status headers", "see" => $MYSITE . "mirroring-troubles.php#content-type", "got" => var_export($ctype, true)); } $ctype = fetch_header($MYSITE . "functions", "content-type"); if (is_array($ctype)) { $ctype = current($ctype); } if (strpos($ctype, "text/html") === false) { return array("name" => "MultiViews on", "see" => $MYSITE . "mirroring-troubles.php#multiviews", "got" => var_export($ctype, true)); } $header = fetch_header($MYSITE . "manual/en/ref.var.php", 0); list($ver, $status, $msg) = explode(" ", $header, 3); if ($status != 200) { return array("name" => "Var Handler", "see" => $MYSITE . "mirroring-troubles.php#var", "got" => var_export($header, true)); } return array("servername" => $MYSITE, "version" => phpversion(), "updated" => $LAST_UPDATED, "sqlite" => $sqlite, "stats" => $mirror_stats, "language" => default_language(), "rsync" => $md5_ok); }
</b> doesn't exist. Closest matches: </p> <?php quickref_table($maybe, false); ?> <br clear="left"/> <?php // Don't do a web search if the search term contains: // tp:// since we are seeing a lot of proxy attempts through the 404 handler // admin/ since these tend to be script-kiddie hack attempts if (strlen($notfound) > 2 && !strstr($notfound, 'tp://') && !strstr($notfound, 'admin/')) { $srch_rqst = "/ws.php?profile={$scope}&q=" . urlencode($notfound) . "&lang={$LANG}&results=10&start=0&mirror=" . trim(substr($MYSITE, 7), '/'); $url = "http://www.php.net" . $srch_rqst; $data = fetch_contents($url); if (!is_array($data)) { $res = unserialize($data); if (is_array($res) && $res['ResultSet']['totalResultsAvailable'] > 0) { // Ok, we got some results from the search backend echo "<br /><h1>Site Search Results</h1>\n"; search_results($res, $notfound, 'local', 10, 0, $LANG, false, false, true); echo '<br clear="left"/>'; } } } ?> <h1>Other forms of search</h1> <p> To search the string "<b><?php