Re: Reg Ex

From: Date: Sat, 01 Nov 2008 09:52:53 +0000
Subject: Re: Reg Ex
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-282735@lists.php.net to get a copy of this message
On Fri, 2008-10-31 at 15:03 +0100, Jochem Maas wrote: > Eric Butera schreef: > > On Fri, Oct 31, 2008 at 9:09 AM, Warren Windvogel > > <wwindvogel@iburst.co.za> wrote: > >> Eric Butera wrote: > >>> Who says every file will have an extension? Who says they're all .+3 > >>> chars? When I first started php I tried that and it failed in a lot > >>> of places. > >> I've also run into that problem in the past. The way that I could work > >> around all these issues was to document naming conventions for the files and > >> validate these before using the regex to obtain the necessary information. > >> > >> Regards > >> Warren > >> > > > > ...or you could just use pathinfo and be done with it. I work for > > clients. Clients shouldn't have to read a faq to upload a file. > > no. they generally believe that when they upload a CSV file in a field > very clearly marked "upload your FLASH file here" things should just work :-) > > > > > I had exactly the same problem with someone wondering why a PDF CV wouldnt upload in a form marked CSV upload, she adamantly refused to read it properly! Ash www.ashleysheridan.co.uk

« previous php.general (#282735) next »