Try thinking???? :? :?
Just add a dot.
$filename = ereg_replace("[^a-zA-Z0-9.]", "",$filename);
=============================
I have a file that is being uploaded, but I need to remove all the
characters
in the filename except letters, numbers, and the '.' (dot). Example would be
'where_i_go.mp3' removing the '_' to get 'whereigo.mp3'. Below is what I
have
to remove the none letters and numbers, but it also takes away the '.'
(dot).
How can I make the code below keep the dot?
$filename = ereg_replace("[^a-zA-Z0-9]", "",$filename);
Regards,
Joseph A. Bannon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________
MSN Foto's is de eenvoudigste manier om je foto's te delen en af te drukken:
http://photos.msn.nl/Support/WorldWide.aspx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php