Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-22 Thread Per Jessen
Dan Joseph wrote: On Wed, Apr 21, 2010 at 8:38 PM, David McGlone da...@dmcentral.net 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

Re: [PHP] Want a answer about php-cgi

2010-04-22 Thread Sharl.Jimh.Tsin
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 amoiz.sh...@gmail.com 写道: added it,but still no found. 囧rz Best regards, Sharl.Jimh.Tsin 2010/4/21 Sharl.Jimh.Tsin

[PHP] Re: replying to list (I give up)

2010-04-22 Thread O. Lavell
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 his mail

[PHP] Re: Want a answer about php-cgi

2010-04-22 Thread Lupus Michaelis
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

Re: [PHP] Re: Want a answer about php-cgi

2010-04-22 Thread Sharl.Jimh.Tsin
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 mickael+...@lupusmic.org: Le 21/04/2010 12:17, Sharl.Jimh.Tsin a écrit : i

Re: [PHP] CD, DVD, and Blu-Ray (Not PHP)

2010-04-22 Thread Ashley Sheridan
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-Ray

Re: [PHP] Re: replying to list

2010-04-22 Thread Ashley Sheridan
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

Re: [PHP] Re: Getting Array to Display

2010-04-22 Thread Ashley Sheridan
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 gwp...@ptd.net wrote in message news:70.50.63467.0020f...@pb1.pair.com... I have a form that I have a

Re: [PHP] Getting Array to Display

2010-04-22 Thread Ashley Sheridan
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 a...@ashleysheridan.co.uk wrote in message news:1271862971.20937.19.ca...@localhost... On Wed, 2010-04-21 at 11:01 -0400, Gary wrote: Ashley

Re: [PHP] Re: replying to list (I give up)

2010-04-22 Thread Ashley Sheridan
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

Re: [PHP] Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-22 Thread Ashley Sheridan
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 when an

Re: [PHP] Re: replying to list (I give up)

2010-04-22 Thread David McGlone
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 to make

Re: [PHP] CD, DVD, and Blu-Ray (Not PHP)

2010-04-22 Thread Richard Quadling
On 21 April 2010 18:16, tedd t...@sperling.com 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

Re: [PHP] Re: replying to list (I give up)

2010-04-22 Thread Mitul Modi
Hi, I am planning to install on embedded device. Please help me to reduce the binary footprint. thanks, Mitul modi

[PHP] Updating cli executable on MS-Windows

2010-04-22 Thread Bob McConnell
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\Testsphp --version PHP 5.2.10 (cli) (built: Jun 17 2009 16:16:57)

Re: [PHP] Re: replying to list (I give up)

2010-04-22 Thread Daniel Brown
On Thu, Apr 22, 2010 at 08:52, Mitul Modi mituld.m...@gmail.com 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

Re: [PHP] Updating cli executable on MS-Windows

2010-04-22 Thread Richard Quadling
On 22 April 2010 14:42, Bob McConnell r...@cbord.com 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\Testsphp

[PHP] Math Question....

2010-04-22 Thread Dan Joseph
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 --

Re: [PHP] Math Question....

2010-04-22 Thread Stephen
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 --

Re: [PHP] Math Question....

2010-04-22 Thread Dan Joseph
On Thu, Apr 22, 2010 at 10:12 AM, Stephen stephe...@rogers.com 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,

Re: [PHP] Math Question....

2010-04-22 Thread Ashley Sheridan
On Thu, 2010-04-22 at 10:17 -0400, Dan Joseph wrote: On Thu, Apr 22, 2010 at 10:12 AM, Stephen stephe...@rogers.com 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

[PHP] Re: Math Question....

2010-04-22 Thread Jo�o C�ndido de Souza Neto
for ($g = $maxpergroup; $g 0; $g++) { if ($items mod $g 0) continue; $Groups = $items div $g; } Maybe it can helps you. Dan Joseph dmjos...@gmail.com escreveu na mensagem news:q2oa20394491004220707x980cef5ej2b310c97d1230...@mail.gmail.com... Howdy, This is a math question, but I'm

Re: [PHP] Math Question....

2010-04-22 Thread Richard Quadling
On 22 April 2010 15:13, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2010-04-22 at 10:17 -0400, Dan Joseph wrote: On Thu, Apr 22, 2010 at 10:12 AM, Stephen stephe...@rogers.com wrote: 1,252,398 DIV 30 = 41,746 groups of 30. 1,252,398 MOD 30 = 18 items in last group Well,

Re: [PHP] Math Question....

2010-04-22 Thread Richard Quadling
On 22 April 2010 15:26, Richard Quadling rquadl...@googlemail.com wrote: On 22 April 2010 15:13, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2010-04-22 at 10:17 -0400, Dan Joseph wrote: On Thu, Apr 22, 2010 at 10:12 AM, Stephen stephe...@rogers.com wrote: 1,252,398 DIV 30 =

RE: [PHP] Math Question....

2010-04-22 Thread Jason
-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

Re: [PHP] Math Question....

2010-04-22 Thread Dan Joseph
On Thu, Apr 22, 2010 at 10:29 AM, Richard Quadling rquadl...@googlemail.com 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:

Re: [PHP] Math Question....

2010-04-22 Thread Peter van der Does
On Thu, 22 Apr 2010 10:17:10 -0400 Dan Joseph dmjos...@gmail.com wrote: On Thu, Apr 22, 2010 at 10:12 AM, Stephen stephe...@rogers.com 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

Re: [PHP] Math Question....

2010-04-22 Thread Peter van der Does
On Thu, 22 Apr 2010 10:49:11 -0400 Peter van der Does pvanderd...@gmail.com wrote: My take on it: $Items=1252398; $MaxInGroup=30; for ($x=$MaxInGroup; $x1;$x--) { $remainder=$Items % $x; // Change 17 to the max amount allowed in the last group if ($remainder == 0 ||

Re: [PHP] Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-22 Thread Peter Lind
On 22 April 2010 12:14, Ashley Sheridan a...@ashleysheridan.co.uk 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

Re: [PHP] Updating cli executable on MS-Windows

2010-04-22 Thread Richard Quadling
On 22 April 2010 14:42, Bob McConnell r...@cbord.com 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\Testsphp

Re: [PHP] Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-22 Thread Ashley Sheridan
On Thu, 2010-04-22 at 17:06 +0200, Peter Lind wrote: On 22 April 2010 12:14, Ashley Sheridan a...@ashleysheridan.co.uk 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

Re: [PHP] Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-22 Thread Peter Lind
On 22 April 2010 17:05, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2010-04-22 at 17:06 +0200, Peter Lind wrote: On 22 April 2010 12:14, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I believe Dan Brown mentioned a very good reason why this is not as simple an issue as just

Re: [PHP] Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-22 Thread Ashley Sheridan
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 question

Re: [PHP] Math Question....

2010-04-22 Thread Richard Quadling
On 22 April 2010 14:48, Dan Joseph dmjos...@gmail.com wrote: On Thu, Apr 22, 2010 at 10:29 AM, Richard Quadling rquadl...@googlemail.com wrote:   It sounds like you are looking for factors. http://www.algebra.com/algebra/homework/divisibility/factor-any-number-1.solver Solution by

Re: [PHP] Math Question....

2010-04-22 Thread Dan Joseph
On Thu, Apr 22, 2010 at 12:16 PM, Richard Quadling rquadl...@googlemail.com wrote: On 22 April 2010 14:48, Dan Joseph dmjos...@gmail.com wrote: This seems to be working ... ?php function findBestFactors($Value, $GroupSize, array $Factors = null) { $Factors = array();

[PHP] Replace a space with a newline every 2 spaces

2010-04-22 Thread Paul Halliday
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:

[PHP] collect string from string

2010-04-22 Thread saeed ahmed
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]],

Re: [PHP] collect string from string

2010-04-22 Thread Ashley Sheridan
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|tee|ti}}

Re: [PHP] Replace a space with a newline every 2 spaces

2010-04-22 Thread Andrew Ballard
On Thu, Apr 22, 2010 at 1:29 PM, Paul Halliday paul.halli...@gmail.com 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?

[PHP] Using usort in a class

2010-04-22 Thread Ashley Sheridan
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

Re: [PHP] Using usort in a class

2010-04-22 Thread Adam Richardson
On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: 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

Re: [PHP] Using usort in a class

2010-04-22 Thread Ashley Sheridan
On Thu, 2010-04-22 at 14:26 -0400, Adam Richardson wrote: On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan a...@ashleysheridan.co.uk 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

Re: [PHP] Using usort in a class

2010-04-22 Thread Adam Richardson
On Thu, Apr 22, 2010 at 2:25 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Thu, 2010-04-22 at 14:26 -0400, Adam Richardson wrote: On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've not had to do this before, and now that I am, I've hit a bit of

[PHP] Re: Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-22 Thread Michelle Konzack
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 instead

Re: [PHP] Re: Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-22 Thread Hans Åhlin
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

Re: [PHP] collect string from string

2010-04-22 Thread saeed ahmed
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 a...@ashleysheridan.co.ukwrote: On Thu, 2010-04-22 at 23:41 +0600, saeed ahmed wrote: hello friend, I have

Re: [PHP] Re: Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-22 Thread Karl DeSaulniers
:) 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

Re: [PHP] collect string from string

2010-04-22 Thread Michiel Sikma
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 supermarket

Re: [PHP] collect string from string

2010-04-22 Thread Ashley Sheridan
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 a...@ashleysheridan.co.ukwrote: On

Re: [PHP] collect string from string

2010-04-22 Thread Ashley Sheridan
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 dried leaves or

Re: [PHP] collect string from string

2010-04-22 Thread saeed ahmed
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 a...@ashleysheridan.co.ukwrote: On Fri, 2010-04-23 at 02:38 +0600, saeed ahmed wrote: this is

Re: [PHP] collect string from string

2010-04-22 Thread Michiel Sikma
On 23 April 2010 00:42, Ashley Sheridan a...@ashleysheridan.co.uk 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

[PHP] Re: Replace a space with a newline every 2 spaces

2010-04-22 Thread Lupus Michaelis
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

RE: [PHP] Updating cli executable on MS-Windows

2010-04-22 Thread Bob McConnell
From: Richard Quadling On 22 April 2010 14:42, Bob McConnell r...@cbord.com 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