David Smith wrote:
> 
> With the following code how can I check to see if the file being uploaded
> has a space in it? Maybe replace them with a _ or reject them all
> together...
> 

I think you want:

$new_fname = ereg_replace("[[:space:]]+", "_", $fname);

Greetings,
Jason

-- 
Jason Murray
Developer
jWeb New Media Design
1 877 525 jWEB

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to