weird file name problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

weird file name problem

Post by m3mn0n »

when i call a file name for a file manager i'm making, any file with a dash in it's name will be seperated into different lines.

eg. file = test-ing.php

output:

test
-
ing.php



The table cell has way more than enough room too. I can't find a fix for this yet, anyone have any ideas?
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

...:?....
pootergeist
Forum Contributor
Posts: 273
Joined: Thu Feb 27, 2003 7:22 am
Location: UK

Post by pootergeist »

the <nobr> no-break tag perhaps?

echo '<nobr>this text cannot be seperated to two lines</nobr> this text can though';
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Thanks for the suggestion, i'm not sure what i did but i fixed it already. :wink:
Post Reply