Jump to content

daj

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by daj

  1. Thanks for the details reply. That really helped
  2. Excellent, thanks for the quick reply. I'm slowly trying to understand it. I had since come up with this, which seems to work ^D([0-9]+)([A|E|V])([0-9]+)^ But I will read up on your method to help me understand
  3. Hi I've been trying to figure this out half the afternoon!! It's my first attempt at using preg_match and regular expressions and I am really struggling. I could do it using other methods based on a number of if's and strpos, etc but I know this is not the best way. I have a short string, for example D34V78. I would like to split this into four elements, with the result an array of D, 34, V and 78 The D (first character) is always D. It is then always followed by a number of unknown length Then a V, A or E then another number of unknown length Further examples.... D1V3 or D98E62 Can some kind person help me by suggesting the regular expression -- my little brain is in melt down with it. :-\
  4. No I need them in a database for logging. They do not come to one particular email address
  5. Hi all, Firstly, i apologise for the long post, but I wanted to give you an overall feel for what I am trying to achieve. The question is at the end!! My Plan is to take emails and stores these in MySql for late retrieval and display. The email could be plain text or html and may contain any number of file attachments (or none)! I have no problem getting the email or saving it into SQL, but my problem is decoding it and extracting any attachments. Ultimately in the SQL database I will have all the usual parts (To, From, etc) plus the body of the email (plain and/or html) and a list of attachments. Everything I have read so far involves getting the emails from an iMap mail server however my emails are all contained in individual text files. My question is really to enquiry what classes/scripts are available to help me decode the text file (email) and gather all the information I need. Any help or pointers much appreciated Thanks David
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.