Re: [PHP] Bilingual strtotime()

2011-02-06 Thread Raymond Irving
Yeah I think that's the only way out for now. I had to do something similar when using strftime() but the same can be done when using strtotime(). You just have to be careful with abbreviated names. Check out the source code here:http://code.google.com/p/raxan/source/browse/trunk/raxan/sdk/raxan

Re: [PHP] Bilingual strtotime()

2011-02-06 Thread Alexis
On 06/02/11 04:54, Ashley Sheridan wrote: On Sun, 2011-02-06 at 11:24 +0100, Peter Lind wrote: On Feb 6, 2011 11:16 AM, "Per Jessen" wrote: Alexis wrote: I was wondering if there was a way to use the strtotime() function when the months are in one or the other of the above two languages?

Re: [PHP] latest posts help

2011-02-06 Thread Ashley Sheridan
"Michael Simiyu" wrote: >hello , am working on showing the last 3 posts showed on a message >board ( bitweaver ) and i would like to know what to add on the below >line of code to show the last 3 this is what i have that shows the >last post > >Code: >{$board.last.title|default:"Post..."|truncate

[PHP] latest posts help

2011-02-06 Thread Michael Simiyu
hello , am working on showing the last 3 posts showed on a message board ( bitweaver ) and i would like to know what to add on the below line of code to show the last 3 this is what i have that shows the last post Code: {$board.last.title|default:"Post..."|truncate:40}a> what should i ad

[PHP] String length output in php-generated response

2011-02-06 Thread Florin Jurcovici
Hi. I'm trying to build myself a small JSON-RPC server using PHP. Using wireshark, here's the conversation: Request: POST /.../service.php?nocache=1297004648751 HTTP/1.1 User-Agent: Opera/9.80 (X11; Linux i686; U; en) Presto/2.7.62 Version/11.01 Host: localhost A

Re: [PHP] Bilingual strtotime()

2011-02-06 Thread Ashley Sheridan
On Sun, 2011-02-06 at 11:24 +0100, Peter Lind wrote: > On Feb 6, 2011 11:16 AM, "Per Jessen" wrote: > > > > Alexis wrote: > > > > > I was wondering if there was a way to use the strtotime() function > > > when the months are in one or the other of the above two languages? > > > > Ah, I misread th

Re: [PHP] Bilingual strtotime()

2011-02-06 Thread Peter Lind
On Feb 6, 2011 11:16 AM, "Per Jessen" wrote: > > Alexis wrote: > > > I was wondering if there was a way to use the strtotime() function > > when the months are in one or the other of the above two languages? > > Ah, I misread this earlier - strtotime(), not strftime(). You're > talking about tran

Re: [PHP] Bilingual strtotime()

2011-02-06 Thread Per Jessen
Alexis wrote: > I was wondering if there was a way to use the strtotime() function > when the months are in one or the other of the above two languages? Ah, I misread this earlier - strtotime(), not strftime(). You're talking about transforming from text to a locale()-neutral format. I don't th

Re: [PHP] Bilingual strtotime()

2011-02-06 Thread Per Jessen
Alexis wrote: > On 05/02/11 13:23, Per Jessen wrote: >> Alexis wrote: >> >>> Hi, >>> >>> Living in Canada, and being a bilingual country, I have data I am >>> processing which includes dates in both English and French. >>> >>> I was wondering if there was a way to use the strtotime() function >>>