upload script filename checking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Ok, so I've got a simple upload script... User uses form to select a file,
the file is then uploaded to a dir on the web server, and a link is
provided for the user to view the file.

Of course when the user uploads "my pic.jpg" the resulting link is broken
(because of the space)... so I want to replace any occurrence of " " with "
_"

Now I'm sure there are other nastys to worry about but I'm new to this any
suggestions on an easy way to make sure the file names are good?

Michael



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux