Może ma ktoś pomysł dlaczego?
index.php:
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Nawigacja po katalogach</title> </head> <body> <div> <?php $downloadpath="./download/"; function wypisz($downloadpath) { if (!$fd) return false; { } } wypisz($downloadpath); ?> </div> </body> </html>
download.php
<?php $downloadpath="/download/"; function checkFileName($name,$downloadpath) { $result=false; { if ($file==$name) { $result=true; break; } } return $result; } function send($file,$downloadpath) { return; } { if (!checkfileName($name,$downloadpath)) { } else { send($_GET['name'],$downloadpath); } } } ?>