\n"; $file_array = file($pathtomyfiles.$fooba); for($i = 0; (($array = explode("|", $file_array[$i])) && (trim($array[0] != ''))); $i++) { $array[0] = trim($array[0]); $array[1] = trim($array[1]); $pdf_exists = file_exists($pathtomyfiles.$array[1].'.pdf'); $doc_exists = file_exists($pathtomyfiles.$array[1].'.doc'); $htm_exists = file_exists($pathtomyfiles.$array[1].'.htm'); $php_exists = file_exists($pathtomyfiles.$array[1].'.php'); if ($pdf_exists||$doc_exists||$htm_exists||$php_exists) { echo "
  • "; echo $array[0], "\n("; if ($pdf_exists) { echo "pdf"; if ($doc_exists||$htm_exists||$php_exists) echo "·"; } if ($doc_exists) { echo "Word2000"; if ($htm_exists||$php_exists) echo "·"; } if ($htm_exists) { echo "html"; if ($php_exists) echo "·"; } if ($php_exists) { echo "php"; } echo ")"; echo "\n"; echo "
  • \n\n"; } } echo "\n"; } //end function function makeLinkList($fooba) { $pathtomyfiles = '/home/users/web/b1565/pow.daviddude/htdocs'; $file_array = file($pathtomyfiles.$fooba); echo ""; } //end function function makeFaqList($fooba) { $pathtomyfiles = '/home/users/web/b1565/pow.daviddude/htdocs'; $file_array = file($pathtomyfiles.$fooba); echo "

    "; for($i = 0; (($array = explode("|", $file_array[$i])) && (trim($array[0] != ''))); $i++) { $question = trim($array[0]); echo "$question
    \n"; } echo "

    \n\n"; for($i = 0; (($array = explode("|", $file_array[$i])) && (trim($array[0] != ''))); $i++) { $question = trim($array[0]); $answer = trim($array[1]); echo "

    $question
    $answer

    \n"; } } //end function ?>

    FAQs (Frequently Asked Questions)