From: Richard Quadling
> On 22 April 2010 14:42, Bob McConnell wrote:
>> I downloaded the MS-Windows cli from The PHP Group a while ago. It
>> claims to be version 5.2.10. But now I can't find where I got it, nor
>> where to get the updates. What is the easiest way to upgrade it to
>> 5.2.13?
>>
>
Le 22/04/2010 19:29, Paul Halliday a écrit :
I found some long functions to achieve this but I couldn't help but
think that it could be done in a couple lines.
Possible?
http://us.php.net/manual/en/function.wordwrap.php
--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org
--
PHP General
On 23 April 2010 00:42, Ashley Sheridan wrote:
> On Fri, 2010-04-23 at 00:44 +0200, Michiel Sikma wrote:
>
-snip-
> Ah, ignore my last reply then! I used the g modifier, forgetting it wasn't
> the multi-line one in PHP!
>
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
It's the glob
yes I have used preg_match_all and preg_match. now its working. thanks a
lot guys
-
Regards
Saeed Ahmed
http://saeed05.wordpress.com
-
On Fri, Apr 23, 2010 at 4:40 AM, Ashley Sheridan
wrote:
> On Fri, 2010-04-23 at 02:38 +0600, saeed ahmed wrote:
>
>
> this is not working
>
> /^(\#.+)
On Fri, 2010-04-23 at 00:44 +0200, Michiel Sikma wrote:
> You need to use the multiline modifier.
>
> Try this:
> preg_match_all("/^(\#.*)/im", $my_string, $matches);
> print_r($matches);
>
> The result:
>
> Array
> (
> [0] => Array
> (
> [0] => # {{uncountable}} The dri
On Fri, 2010-04-23 at 02:38 +0600, saeed ahmed wrote:
> this is not working
>
> /^(\#.+)$/g
>
> I have tried the preg_match function
>
> -
> Regards
> Saeed Ahmed
> http://saeed05.wordpress.com
> -
>
>
> On Thu, Apr 22, 2010 at 11:39 PM, Ashley Sheridan
> wrote:
>
> > On Thu, 2010-0
You need to use the multiline modifier.
Try this:
preg_match_all("/^(\#.*)/im", $my_string, $matches);
print_r($matches);
The result:
Array
(
[0] => Array
(
[0] => # {{uncountable}} The dried leaves or buds of the [[tea
plant]],
[1] => #: ''Go to the supermark
:)
On Apr 22, 2010, at 2:26 PM, Michelle Konzack wrote:
Hello Karl DeSaulniers,
Am 2010-04-21 15:55:41, hacktest Du folgendes herunter:
WHY would we want to do that? Much unnecessary work when an admin
could set a reply-to and all would be solved.
With all due respect, if I was going to go th
this is not working
/^(\#.+)$/g
I have tried the preg_match function
-
Regards
Saeed Ahmed
http://saeed05.wordpress.com
-
On Thu, Apr 22, 2010 at 11:39 PM, Ashley Sheridan
wrote:
> On Thu, 2010-04-22 at 23:41 +0600, saeed ahmed wrote:
>
> hello friend,
>
> I have a string like below
Is this the new "threading support" thread?!?!
Why don't nuke everything then its nothing to use or complain about...
**
Hans Åhlin
Tel: +46761488019
http://www.kronan-net.com/
irc://irc.freenode.net:6667 - TheCoin
Hello Karl DeSaulniers,
Am 2010-04-21 15:55:41, hacktest Du folgendes herunter:
> WHY would we want to do that? Much unnecessary work when an admin
> could set a reply-to and all would be solved.
> With all due respect, if I was going to go through all that trouble
> just so I could hit reply inst
On Thu, Apr 22, 2010 at 2:25 PM, Ashley Sheridan
wrote:
> On Thu, 2010-04-22 at 14:26 -0400, Adam Richardson wrote:
>
> On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan
> wrote:
>
> I've not had to do this before, and now that I am, I've hit a bit of a
> wall:
>
> Basically, I've an array that
On Thu, 2010-04-22 at 14:26 -0400, Adam Richardson wrote:
> On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan
> wrote:
>
> I've not had to do this before, and now that I am, I've hit a
> bit of a
> wall:
>
> Basically, I've an array that might look like th
On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan
wrote:
> I've not had to do this before, and now that I am, I've hit a bit of a
> wall:
>
> Basically, I've an array that might look like this (the number of
> elements may vary, but the letter is always unique and remains a single
> character):
>
>
I've not had to do this before, and now that I am, I've hit a bit of a
wall:
Basically, I've an array that might look like this (the number of
elements may vary, but the letter is always unique and remains a single
character):
Array(
0 => '2h'
1 => '1d'
2 => '2w'
)
And I need to sort
On Thu, Apr 22, 2010 at 1:29 PM, Paul Halliday wrote:
> Ex:
>
> "This is the string and it is this long"
>
> This is
> the string
> and it
> is this
> long
>
> I found some long functions to achieve this but I couldn't help but
> think that it could be done in a couple lines.
>
> Possible?
>
> Tha
On Thu, 2010-04-22 at 23:41 +0600, saeed ahmed wrote:
> hello friend,
>
> I have a string like below
> "
>
> ===Pronunciation===
> * {{enPR|tē}}, {{IPA|/tiː/}}, {{SAMPA|/ti:/}}
> * {{audio|en-us-tea.ogg|Audio (US)}}
> * {{audio|En-uk-tea.ogg|Audio (UK)}}
> *: {{rhymes|iː}}
> * {{homophones|T|te|
hello friend,
I have a string like below
"
===Pronunciation===
* {{enPR|tē}}, {{IPA|/tiː/}}, {{SAMPA|/ti:/}}
* {{audio|en-us-tea.ogg|Audio (US)}}
* {{audio|En-uk-tea.ogg|Audio (UK)}}
*: {{rhymes|iː}}
* {{homophones|T|te|tee|ti}}
# {{uncountable}} The dried leaves or buds of the [[tea plant]],
'
Ex:
"This is the string and it is this long"
This is
the string
and it
is this
long
I found some long functions to achieve this but I couldn't help but
think that it could be done in a couple lines.
Possible?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
On Thu, Apr 22, 2010 at 12:16 PM, Richard Quadling wrote:
> On 22 April 2010 14:48, Dan Joseph wrote:
> This seems to be working ...
>
> function findBestFactors($Value, $GroupSize, array &$Factors = null)
>{
>$Factors = array();
>foreach(range(1, ceil(sqrt($Value))) as
On 22 April 2010 14:48, Dan Joseph wrote:
> On Thu, Apr 22, 2010 at 10:29 AM, Richard Quadling > wrote:
>
>> Â >
>> > It sounds like you are looking for factors.
>> >
>> >
>> http://www.algebra.com/algebra/homework/divisibility/factor-any-number-1.solver
>> >
>> > Solution by Find factors of any n
On Thu, 2010-04-22 at 17:35 +0200, Peter Lind wrote:
> Which is worse, one person having to
> check the answer by looking at the mailing list archive or the rest of
> the list not benefiting at all from the answer?
Well, as that one person was the one who needed the help enough to ask
the questi
On 22 April 2010 17:05, Ashley Sheridan wrote:
>
> On Thu, 2010-04-22 at 17:06 +0200, Peter Lind wrote:
>
> On 22 April 2010 12:14, Ashley Sheridan wrote:
> > I believe Dan Brown mentioned a very good reason why this is not as
> > simple an issue as just changing the reply-to. Not everyone who po
On Thu, 2010-04-22 at 17:06 +0200, Peter Lind wrote:
> On 22 April 2010 12:14, Ashley Sheridan wrote:
> > I believe Dan Brown mentioned a very good reason why this is not as
> > simple an issue as just changing the reply-to. Not everyone who posts to
> > the list subscribes to the list, so being
On 22 April 2010 14:42, Bob McConnell wrote:
> I downloaded the MS-Windows cli from The PHP Group a while ago. It
> claims to be version 5.2.10. But now I can't find where I got it, nor
> where to get the updates. What is the easiest way to upgrade it to
> 5.2.13?
>
> D:\Code\Tests>php --version
On 22 April 2010 12:14, Ashley Sheridan wrote:
> I believe Dan Brown mentioned a very good reason why this is not as
> simple an issue as just changing the reply-to. Not everyone who posts to
> the list subscribes to the list, so being copied into the emails is good
> for them. Suddenly changing t
On Thu, 22 Apr 2010 10:49:11 -0400
Peter van der Does wrote:
>
> My take on it:
>
> $Items=1252398;
> $MaxInGroup=30;
> for ($x=$MaxInGroup; $x>1;$x--) {
> $remainder=$Items % $x;
> // Change 17 to the max amount allowed in the last group
> if ($remainder == 0 || $remainder >
On Thu, 22 Apr 2010 10:17:10 -0400
Dan Joseph wrote:
> On Thu, Apr 22, 2010 at 10:12 AM, Stephen
> wrote:
>
> > 1,252,398 DIV 30 = 41,746 groups of 30.
> >
> > 1,252,398 MOD 30 = 18 items in last group
> >
> Well, the only problem with going that route, is the one group is not
> equally sized t
On Thu, Apr 22, 2010 at 10:29 AM, Richard Quadling wrote:
> >
> > It sounds like you are looking for factors.
> >
> >
> http://www.algebra.com/algebra/homework/divisibility/factor-any-number-1.solver
> >
> > Solution by Find factors of any number
> >
> > 1252398 is NOT a prime number: 1252398 =
-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: 22 April 2010 15:13
To: Dan Joseph
Cc: PHP eMail List
Subject: Re: [PHP] Math Question
On Thu, 2010-04-22 at 10:17 -0400, Dan Joseph wrote:
> On Thu, Apr 22, 2010 at 10:12 AM, Stephen wrote:
>
> > 1,2
On 22 April 2010 15:26, Richard Quadling wrote:
> On 22 April 2010 15:13, Ashley Sheridan wrote:
>> On Thu, 2010-04-22 at 10:17 -0400, Dan Joseph wrote:
>>
>>> On Thu, Apr 22, 2010 at 10:12 AM, Stephen wrote:
>>>
>>> > 1,252,398 DIV 30 = 41,746 groups of 30.
>>> >
>>> > 1,252,398 MOD 30 = 18 ite
On 22 April 2010 15:13, Ashley Sheridan wrote:
> On Thu, 2010-04-22 at 10:17 -0400, Dan Joseph wrote:
>
>> On Thu, Apr 22, 2010 at 10:12 AM, Stephen wrote:
>>
>> > 1,252,398 DIV 30 = 41,746 groups of 30.
>> >
>> > 1,252,398 MOD 30 = 18 items in last group
>> >
>> Well, the only problem with going
for ($g = $maxpergroup; $g > 0; $g++) {
if ($items mod $g <> 0) continue;
$Groups = $items div $g;
}
Maybe it can helps you.
"Dan Joseph" escreveu na mensagem
news:q2oa20394491004220707x980cef5ej2b310c97d1230...@mail.gmail.com...
> Howdy,
>
> This is a math question, but I'm doing the c
On Thu, 2010-04-22 at 10:17 -0400, Dan Joseph wrote:
> On Thu, Apr 22, 2010 at 10:12 AM, Stephen wrote:
>
> > 1,252,398 DIV 30 = 41,746 groups of 30.
> >
> > 1,252,398 MOD 30 = 18 items in last group
> >
> Well, the only problem with going that route, is the one group is not
> equally sized to t
On Thu, Apr 22, 2010 at 10:12 AM, Stephen wrote:
> 1,252,398 DIV 30 = 41,746 groups of 30.
>
> 1,252,398 MOD 30 = 18 items in last group
>
Well, the only problem with going that route, is the one group is not
equally sized to the others. 18 is ok for a group in this instance, but if
it was a rem
Dan Joseph wrote:
I want to take a group of items, and divide them into equal groups based on
a max per group. Example.
1,252,398 -- divide into equal groups with only 30 items per group max.
1,252,398 DIV 30 = 41,746 groups of 30.
1,252,398 MOD 30 = 18 items in last group
Stephen
--
Howdy,
This is a math question, but I'm doing the code in PHP, and have expunged
all resources... hoping someone can guide me here. For some reason, I can't
figure this out.
I want to take a group of items, and divide them into equal groups based on
a max per group. Example.
1,252,398 -- divid
On 22 April 2010 14:42, Bob McConnell wrote:
> I downloaded the MS-Windows cli from The PHP Group a while ago. It
> claims to be version 5.2.10. But now I can't find where I got it, nor
> where to get the updates. What is the easiest way to upgrade it to
> 5.2.13?
>
> D:\Code\Tests>php --version
On Thu, Apr 22, 2010 at 08:52, Mitul Modi wrote:
> Hi,
>
> I am planning to install on embedded device. Please help me to reduce the
> binary footprint.
You sent two messages to the Install list and then hijacked this
thread. Send a new message to php-general@lists.php.net and ask for
help.
I downloaded the MS-Windows cli from The PHP Group a while ago. It
claims to be version 5.2.10. But now I can't find where I got it, nor
where to get the updates. What is the easiest way to upgrade it to
5.2.13?
D:\Code\Tests>php --version
PHP 5.2.10 (cli) (built: Jun 17 2009 16:16:57)
Copyr
Hi,
I am planning to install on embedded device. Please help me to reduce the
binary footprint.
thanks,
Mitul modi
On 21 April 2010 18:16, tedd wrote:
> Hi gang:
>
> I'm no expert on media, but the only difference between CD, DVD, Blu-Ray is
> the amount of data they can hold, right? IOW, you can still record video,
> audio, pictures, files, all digital data on all media - it's just that
> Blu-Ray can hold mor
On Wednesday 21 April 2010 12:16:28 O. Lavell wrote:
> Michelle Konzack wrote:
> > Hello David McGlone,
> >
> > Am 2010-04-21 08:27:18, hacktest Du folgendes herunter:
> >> I give up. trying to reply to messages on this list is tedious. I can't
> >> pinpoint whether it's because the list is set up
On Wed, 2010-04-21 at 15:55 -0500, Karl DeSaulniers wrote:
> On Apr 21, 2010, at 1:51 PM, Jay Blanchard wrote:
>
> > Then write an interface (using PHP of course) that
> > only responds to the list when you generate a reply.
>
> LOL
> WT??
>
> WHY would we want to do that? Much unnecessary work
On Wed, 2010-04-21 at 19:55 +, Bobby Pejman wrote:
> I must say, I never heard or even thought of the idea of calling it LookOut.
> Hahaha. It made me laugh for a good 10 minutes and if that term is open
> source, I will be using it ;)
>
> -Original Message-
> From: "Bob McConnell"
On Wed, 2010-04-21 at 14:31 -0400, Gary wrote:
> Ashley
>
> If I were to create a child table, would the Type be a Bool?
>
> Gary
>
>
> "Ashley Sheridan" wrote in message
> news:1271862971.20937.19.ca...@localhost...
> > On Wed, 2010-04-21 at 11:01 -0400, Gary wrote:
> >
> >> Ashley
> >>
> >
On Wed, 2010-04-21 at 14:18 -0400, Gary wrote:
> As an addition to the issue, when I do a SELECT FROM and call for a specific
> keyword, it does not return any records..
>
>
> Gary
>
>
> ""Gary"" wrote in message
> news:70.50.63467.0020f...@pb1.pair.com...
> >I have a form that I have a (ev
On Wed, 2010-04-21 at 19:15 +0200, Michelle Konzack wrote:
> Can you not adapt the toolbar?
I did find
http://www.mail-archive.com/evolut...@lists.ximian.com/msg01302.html but
it looks to be Linux-only. I would assume there's an equivalent method
out there for Windows and Macs.
Thanks,
Ash
http
On Wed, 2010-04-21 at 13:16 -0400, tedd wrote:
> Hi gang:
>
> I'm no expert on media, but the only difference between CD, DVD,
> Blu-Ray is the amount of data they can hold, right? IOW, you can
> still record video, audio, pictures, files, all digital data on all
> media - it's just that Blu-R
thanks for your reply.
i think i have know the reason now.
the CGI version of php is not built by default,we MUST add
"--enable-cgi" to configure explicitly.
Best regards,
Sharl.Jimh.Tsin
2010/4/22 Lupus Michaelis :
> Le 21/04/2010 12:17, Sharl.Jimh.Tsin a écrit :
>
>> i can not find php-cgi
Le 21/04/2010 12:17, Sharl.Jimh.Tsin a écrit :
i can not find php-cgi file in the bin/sbin directory. WHY?
("--disable-cgi" is not used)
cd to your build directory, then type next command :
find . -name php5-cgi -or -name php-cgi
--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org
Michelle Konzack wrote:
> Hello David McGlone,
>
> Am 2010-04-21 08:27:18, hacktest Du folgendes herunter:
>> I give up. trying to reply to messages on this list is tedious. I can't
>> pinpoint whether it's because the list is set up to make replies go to
>> the OP or the OP has his reply-to in hi
who can give me a sample to build a cgi version of php 5.3.x?
i really have no idea now...
Best regards,
Sharl.Jimh.Tsin
在 2010年4月21日 下午7:32,Sharl.Jimh.Tsin 写道:
> added it,but still no found. 囧rz
>
> Best regards,
> Sharl.Jimh.Tsin
>
>
>
> 2010/4/21 Sharl.Jimh.Tsin :
>> Sorry,i don't add it.
Dan Joseph wrote:
> On Wed, Apr 21, 2010 at 8:38 PM, David McGlone
> wrote:
>
>>
>> Are we gonna have to have a discussion on the use of "threading"? LOL
>>
>>
>>
> We just might. Personally, I use it to sow holes in the toe of my
> socks.
>
My newsreader supports threading.
--
Per Jessen
54 matches
Mail list logo