The path '$path' is bad.

\n"); html_footer(); } } else { $fp = fopen("docfiles$path", "rb"); if (!$fp) { if ($type == "html") { html_header("Documentation Error"); print("

Unable to open path '$path'.

\n"); html_footer(); } } else if ($type == "html") { html_header("Documentation"); $saw_body = 0; $last_nav = 0; while ($line = fgets($fp, 1024)) { if (strstr($line, "") || strstr($line, "")) { break; } else if ($saw_body) { if (strstr($line, "ContentsPrevious") || strstr($line, ">Next")) { if ($last_nav) print("·\n"); else print("\n"); print("

User Comments

\n" ."

" ."Add Comment

\n"); $num_comments = show_comments("documentation.php$path"); if ($num_comments == 0) print("

No comments for this page.

\n"); html_footer(); } else { header("Content-Type: image/$type"); print(fread($fp, filesize("docfiles$path"))); fclose($fp); } } } else { html_header("Documentation"); if (array_key_exists("CLEAR", $_GET)) $q = ""; else if (array_key_exists("Q", $_GET)) $q = $_GET["Q"]; else $q = ""; $html = htmlspecialchars($q, ENT_QUOTES); if (stripos($_SERVER["HTTP_USER_AGENT"], "webkit") !== FALSE) { // Use Safari search box... $search = ""; } else { // Use standard HTML text field... $search = " " ." " .""; } print("
\n" ."

$search

\n" ."
\n"); if ($q != "") { // Run htmlsearch to search the documentation... $matches = array(); $scores = array(); $maxscore = 0; $fp = popen("/usr/local/bin/websearch docfiles " . escapeshellarg($q), "r"); fgets($fp, 1024); while ($line = fgets($fp, 1024)) { $data = explode("|", $line); $matches[$data[1]] = $data[2]; $scores[$data[1]] = $data[0]; if ($maxscore == 0) $maxscore = $data[0]; } pclose($fp); // Show the results... if (sizeof($matches) == 1) $total = "1 match"; else $total = sizeof($matches) . " matches"; print("

$total found:

\n" ."\n"); reset($matches); foreach ($matches as $file => $text) { $link = "$PHP_SELF/$file"; $score = str_repeat("★", (int)(4 * $scores[$file] / $maxscore) + 1); print("" ."\n"); } print("
$score   $text
\n"); } else { ?>

You can view the Mini-XML documentation in a single HTML file or in multiple files with comments on-line:

You can also get a printed version of the Mini-XML documentation on Lulu.com.