Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #3679 > unrolled thread

by get this format my explode file name like this through php

Started bysrikanth <srikanth.t@vorix.in>
First post2011-11-03 23:41 -0700
Last post2011-11-06 00:20 +0000
Articles 8 — 5 participants

Back to article view | Back to comp.lang.php


Contents

  by get this format my explode file name like this through php srikanth <srikanth.t@vorix.in> - 2011-11-03 23:41 -0700
    Re: by get this format my explode file name like this through php Derek Turner <frderek@cesmail.net> - 2011-11-04 08:45 +0000
    Re: by get this format my explode file name like this through php Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-04 16:04 +0000
    Re: by get this format my explode file name like this through php Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-04 21:54 +0000
    Re: by get this format my explode file name like this through php Balazs Nadasdi <yitsushi@gmail.com> - 2011-11-05 06:34 -0700
      Re: by get this format my explode file name like this through php Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-05 14:54 +0000
        Re: by get this format my explode file name like this through php Michael Fesser <netizen@gmx.de> - 2011-11-05 18:20 +0100
          Re: by get this format my explode file name like this through php Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-06 00:20 +0000

#3679 — by get this format my explode file name like this through php

Fromsrikanth <srikanth.t@vorix.in>
Date2011-11-03 23:41 -0700
Subjectby get this format my explode file name like this through php
Message-ID<13602424.638.1320388866187.JavaMail.geo-discussion-forums@pref15>
N1N2N3N4N5N6N7N8N9N10N11N12N13N14YYYYMMDDHHMMSS.zip where, 
  
N1N2N3N4 – Branch Code 
N5N6N7N8N9 – ID. 
N10N11N12N13N14- Sequence Number 
YYYYMMDDHHMMSS – Date-time 

[toc] | [next] | [standalone]


#3681

FromDerek Turner <frderek@cesmail.net>
Date2011-11-04 08:45 +0000
Message-ID<9hhn0mFmeuU2@mid.individual.net>
In reply to#3679
On Thu, 03 Nov 2011 23:41:06 -0700, srikanth wrote:

> N1N2N3N4N5N6N7N8N9N10N11N12N13N14YYYYMMDDHHMMSS.zip where,
>   
> N1N2N3N4 – Branch Code
> N5N6N7N8N9 – ID.
> N10N11N12N13N14- Sequence Number
> YYYYMMDDHHMMSS – Date-time

http://catb.org/~esr/faqs/smart-questions.html

[toc] | [prev] | [next] | [standalone]


#3688

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2011-11-04 16:04 +0000
Message-ID<4eb40d01$0$28723$a8266bb1@newsreader.readnews.com>
In reply to#3679
On Thu, 03 Nov 2011 23:41:06 -0700, srikanth wrote:

> N1N2N3N4N5N6N7N8N9N10N11N12N13N14YYYYMMDDHHMMSS.zip where,
>   
> N1N2N3N4 – Branch Code
> N5N6N7N8N9 – ID.
> N10N11N12N13N14- Sequence Number
> YYYYMMDDHHMMSS – Date-time

What is your code?
What is your input data?
What is the result?
Why is the result not what you expect?

Rgds

Denis McMahon

[toc] | [prev] | [next] | [standalone]


#3691

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2011-11-04 21:54 +0000
Message-ID<4eb45f10$0$28521$a8266bb1@newsreader.readnews.com>
In reply to#3679
On Thu, 03 Nov 2011 23:41:06 -0700, srikanth wrote:

Oh, this bit can be solved:

> YYYYMMDDHHMMSS – Date-time

Just read this:

http://uk.php.net/manual/en/function.date.php

Rgds

Denis McMahon

[toc] | [prev] | [next] | [standalone]


#3692

FromBalazs Nadasdi <yitsushi@gmail.com>
Date2011-11-05 06:34 -0700
Message-ID<17278043.2089.1320500071354.JavaMail.geo-discussion-forums@yqhd1>
In reply to#3679
1. Why don't you use delimiters (eg: underscore)?
2. Why do you use YYYYMMDDHHMMSS? Unix Timestamp?
3. What is our problem? Describe it, please!

[toc] | [prev] | [next] | [standalone]


#3693

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2011-11-05 14:54 +0000
Message-ID<4eb54e2c$0$28710$a8266bb1@newsreader.readnews.com>
In reply to#3692
On Sat, 05 Nov 2011 06:34:31 -0700, Balazs Nadasdi wrote:

> 2. Why do you use
> YYYYMMDDHHMMSS? Unix Timestamp?

Conjecture - as he's creating a filename, I'd suggest that yyyymmddhhmmss 
is more human readable in a filename than a unix timestamp is.

Rgds

Denis McMahon

[toc] | [prev] | [next] | [standalone]


#3694

FromMichael Fesser <netizen@gmx.de>
Date2011-11-05 18:20 +0100
Message-ID<mtrab7tnlhr9gmibrlfoq0uvto5a189vqk@mfesser.de>
In reply to#3693
.oO(Denis McMahon)

>On Sat, 05 Nov 2011 06:34:31 -0700, Balazs Nadasdi wrote:
>
>> 2. Why do you use
>> YYYYMMDDHHMMSS? Unix Timestamp?
>
>Conjecture - as he's creating a filename, [...]

I understood it that way that he has a filename and wants to split it
into its parts as described ("explode"). In this case preg_match() or
sscanf() might help.

Micha

-- 
http://mfesser.de/blickwinkel

[toc] | [prev] | [next] | [standalone]


#3697

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2011-11-06 00:20 +0000
Message-ID<4eb5d2c4$0$28447$a8266bb1@newsreader.readnews.com>
In reply to#3694
On Sat, 05 Nov 2011 18:20:30 +0100, Michael Fesser wrote:

> .oO(Denis McMahon)
> 
>>On Sat, 05 Nov 2011 06:34:31 -0700, Balazs Nadasdi wrote:
>>
>>> 2. Why do you use
>>> YYYYMMDDHHMMSS? Unix Timestamp?
>>
>>Conjecture - as he's creating a filename, [...]
> 
> I understood it that way that he has a filename and wants to split it
> into its parts as described ("explode"). In this case preg_match() or
> sscanf() might help.

Oh. I thought he was trying to create the filename from the data.

If he wants to get the data from the filename, all he needs is a few 
http://uk.php.net/manual/en/function.substr.php surely.

$branch = substr(string,start,length);

etc etc etc

Rgds

Denis McMahon

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web