- \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";
for($i = 0; (($array = explode("|", $file_array[$i])) && (trim($array[0] != ''))); $i++)
{
$array[0] = trim($array[0]);
$array[1] = trim($array[1]);
$array[2] = trim($array[2]);
echo "
- ", $array[0], "::", $array[2], " \n"; } echo "
";
for($i = 0; (($array = explode("|", $file_array[$i])) && (trim($array[0] != ''))); $i++)
{
$question = trim($array[0]);
echo "$question
\n";
}
echo "