PHP - Files from folder on a webpage
#5

Quote:
Originally Posted by viKKmaN
Посмотреть сообщение
What about this... I know your problem is with parsing $file into the echo... Just can't figure out why...
Код:
<?php  
if ($handle = opendir('uploads')) {  
    while (false !== ($file = readdir($handle))) {   
        if ($file != "." && $file != "..") {   
            echo "<u><a href=".$file.">$file</a></u><br/>";  
        }   
    }  
    closedir($handle);   
}  
?>
nope... too bad it isn't possibble in HTML because that would be freakin simple :P

thanks!
Reply


Messages In This Thread
PHP - Files from folder on a webpage - by Jantjuh - 21.02.2011, 15:27
Re: PHP - Files from folder on a webpage - by viKKmaN - 21.02.2011, 15:34
Re: PHP - Files from folder on a webpage - by Jantjuh - 21.02.2011, 15:42
Re: PHP - Files from folder on a webpage - by viKKmaN - 21.02.2011, 15:45
Re: PHP - Files from folder on a webpage - by Jantjuh - 21.02.2011, 15:49
Re: PHP - Files from folder on a webpage - by saiberfun - 21.02.2011, 15:54
Re: PHP - Files from folder on a webpage - by Jantjuh - 21.02.2011, 15:58
Re: PHP - Files from folder on a webpage - by saiberfun - 21.02.2011, 15:59
Re: PHP - Files from folder on a webpage - by Jantjuh - 21.02.2011, 16:13
Re: PHP - Files from folder on a webpage - by JaTochNietDan - 21.02.2011, 17:48

Forum Jump:


Users browsing this thread: 1 Guest(s)