line breaks in between fetched file names

Posted on 16th Feb 2014 07:03 pm by admin


I have this code:
Code: <?php
if($dir = opendir('files')){
while (($file = readdir($dir) )!== false){
if ($file !='.' && $file !='..'){
echo '<a href="' . $file . '">' . $file . '</a>';"n";

but when it outputs the files from the files folder, it lists them one after another with no spaces etc. How can I make it list one file per line?



No comments posted yet

Your Answer:

Login to answer
176 Like 40 Dislike
Previous forums Next forums
Other forums

question about stripslashes and real_escape_string
im cleaning up an old app that I wrote fixing some of the vulernabilities from attacks.

I hav

[b][url=]ロレックスヨットマスターII[/url][/b] [b][ur

Beste verkopen Trouwjurken 2013 , Goedkoop beste Verkopen jurk , Koop beste verkopen Trouwjurken Online
Kopen Bruidsjurken
Kopen Bruidsjurken
[b][url=]Bridal Factory O

Mont Blanc Refill
[b][url=]montblanc kynä[/url][/b] [b][url=http://www.montbla

Download Image from URL and Upload it
Ok, I have been googling for the last 1/2 hour trying to figure this out, Most likely I'm just not s

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Google+ Indyaspeak @ Pinterest RSS