Re: [PHP] Reg Ex



Eric Butera schreef:
On Fri, Oct 31, 2008 at 9:09 AM, Warren Windvogel
<wwindvogel@xxxxxxxxxxxx> 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 :-)



.



Relevant Pages

  • Re: [PHP] Reg Ex
    ... When I first started php I tried that and it failed in a lot ... Clients shouldn't have to read a faq to upload a file. ...
    (php.general)
  • Re: [PHP] Reg Ex
    ... When I first started php I tried that and it failed in a lot ... Clients shouldn't have to read a faq to upload a file. ... wouldnt upload in a form marked CSV upload, ...
    (php.general)
  • Re: [PHP] Re: File Upload - post_max_size and upload_max_filesize in GBs
    ... When you hit the upload button the browser makes a connection to the server and the PHP engine gets invoked to handle the request. ...
    (php.general)
  • Re: file upload problem
    ... I am trying to learn about uploading files with php. ... I made a simple form script and and file up load script. ... The form script gets the file name correctly and seems to pass it to the upload script correctly. ... if I echo ini_getI see ...
    (comp.lang.php)
  • Re: file upload problem
    ... I am trying to learn about uploading files with php. ... I made a simple form script and and file up load script. ... The form script gets the file name correctly and seems to pass it to the upload script correctly. ... if I echo ini_getI see ...
    (comp.lang.php)