"Clay Culver" <[EMAIL PROTECTED]> wrote:
>
> I have a script that lists the files in a directory, and
> create links accordingly but if the files contain spaces then the link
> won't come out correctly. I am fairly new to PHP and have no real idea
> on how I can get it to make links show as <a href="link"></a> currently
> it will put links like <a href=link></a> which is causing the problem.
Quotes are not enough. If your filename contains spaces or other 'special'
characters you will still have the problem. I suggest you try use function
urlencode() to create URLs.
print ("<A HREF=\"urlencode($link)\">link descr.<A>")
This could be helpfull, but you must check it.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php