Re: [PHP] Stripping out all illegal characters for a folder name

2003-11-26 Thread Sophie Mattoug
Joseph Szobody wrote: Folks, I'm taking some user input, and creating a folder on the server. I'm already replacing with _, and stripping out a few known illegal characters (', , /, \, etc). I need to be sure that I'm stripping out every character that cannot be used for a folder name. What's

Re: [PHP] Stripping out all illegal characters for a folder name

2003-11-26 Thread Curt Zirzow
* Thus wrote Sophie Mattoug ([EMAIL PROTECTED]): Joseph Szobody wrote: I'm taking some user input, and creating a folder on the server. I'm already replacing with _, and stripping out a few known illegal characters (', , /, \, etc). I need to be sure that I'm stripping out every

Re: [PHP] Stripping out all illegal characters for a folder name

2003-11-26 Thread CPT John W. Holmes
Sorry for the reply to the reply, but OExpress won't let me reply to newsgroup posts... From: Sophie Mattoug [EMAIL PROTECTED] Joseph Szobody wrote: I'm taking some user input, and creating a folder on the server. I'm already replacing with _, and stripping out a few known illegal characters

RE: [PHP] Stripping out all illegal characters for a folder name

2003-11-26 Thread Jay Blanchard
[snip] Sorry for the reply to the reply, but OExpress won't let me reply to newsgroup posts... [/snip] Had to laugh... :) AND BTW Happy Thanksgiving to all of our folks who celebrate that holiday! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Stripping out all illegal characters for a folder name

2003-11-26 Thread Justin French
On Thursday, November 27, 2003, at 03:12 AM, Curt Zirzow wrote: I'd approach it the same way. preg_replace('/[^A-Za-z0-9_]/', '_', $dirname); I totally agree with Curt here. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php