RE: [PHP-WIN] Ereg problems

2007-01-16 Thread Beauford
No, this is what I said in my original email. I want to allow the following: a to z, A to Z, 0 to 9, and "_-'" (without the double quotes) and spaces. I don't care about length, I don't care about order. I just want the user to be able to use these characters. A to z A to Z 0 to 9 and the charac

RE: [PHP-WIN] Ereg problems

2007-01-16 Thread Beauford
ce - I have to have a space. I don't need a length. > -Original Message- > From: bedul [mailto:[EMAIL PROTECTED] > Sent: January 15, 2007 11:48 PM > To: Beauford > Subject: Re: [PHP-WIN] Ereg problems > > $nlong=strlen($username); > if(ereg ("([0-9][A-

[PHP-WIN] Ereg problems

2007-01-15 Thread Beauford
Hi, Without getting into a long drawn out discussion, can anyone show me a way to validate a string that is input from a form. I want to allow the following: a to z, A to Z, 0 to 9, and "_-'" (without the double quotes) and spaces. I have now been screwing around with this for over 8 hours. There

[PHP-WIN] Windows paths and opendir()

2007-01-06 Thread Beauford
Hi, I have been banging my head for the last 4 hours trying to get this to work. I simply want to be able to display a directory listing of a drive and directory. i.e. d:\directoryname. Is this even possible Any help is appreciated. I am using IIS 6 and PHP 4.4. This is the error I get: Warn