Instead of trying to list what you don't want, list what you do and remove the rest.
PHP Code:
$filename = preg_replace('/[^a-z0-9\.]/', '', $filename);
__________________
Jeremy Miller
Please login or register to view this content. Registration is FREE
Last edited by JeremyMiller; 06-21-2008 at 06:56 PM..
Reason: Added \. to let the file extension remain as an extension, but will leave other .'s in as well.
|