12-23-2011, 12:48 AM
|
#4 (permalink)
|
|
The Acquainted
Join Date: Nov 2007
Posts: 166
Thanks: 0
|
Something like this would strip everything off that isn't a letter, number, -, _, or .
PHP Code:
$file = preg_replace('#[^a-Z0-9_-.]+#i', '', $file);
I didn't test it.
__________________
Eric
|
|
|
|