Page 1 of 1

anoying problem with spaces.....`

Posted: Mon Dec 15, 2003 6:11 pm
by dull1554
i have written a picture gallery but if the image has a space in the file name, it does not display, i was wondering how i can fix this.

Posted: Mon Dec 15, 2003 6:13 pm
by qads
never ever ever never..never have spaces in your file names, unix/linux doest like it.

here is something you can try...its a little tricky though...rename all the files which have spaces in the names :lol: :lol: :lol:

sorry, dont mean to be rude :P

Posted: Mon Dec 15, 2003 6:15 pm
by Weirdan
enclose src attribute value in quotes:
instead of

Code: Select all

<img src=some picture.jpg>
use:

Code: Select all

<img src='some picture.jpg'>

Posted: Mon Dec 15, 2003 6:26 pm
by dull1554
thankyou weirdan, i would have never thought of something so simple,i was about to write a script to change all spaces to dashes to fix my problem, but this was much easier, and qads, see whenever i upload a file i make sure there are no spaces b/c i no that many systems do not like spaces, but the script i've been working on is for someone elses website, and they may upload files with spaces, but thanks for the suggestion