php-general Digest 12 Dec 2007 13:59:28 -0000 Issue 5177

2007-12-12 Thread php-general-digest-help
php-general Digest 12 Dec 2007 13:59:28 - Issue 5177 Topics (messages 265728 through 265749): Re: running cmd via php 265728 by: Chris 265731 by: Jochem Maas 265732 by: Chris 265733 by: Jochem Maas 265734 by: Stephen Johnson 265735 by: Chris

[PHP] How to look for unused methods/functions and variables/constants.

2007-12-12 Thread Mathijs van Veluw
Hello there, We have a large project with lots of classes. Now i am wondering if there is a way to let something check all those files and tell me which methods/functions variables/constants etc.. arn't used anymore. Or even which files arn't used anymore. Is there already something like

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-12 Thread Per Jessen
Jochem Maas wrote: Have you tried stracing it to see what's really happening when the load goes that high? am I correct that that would be done like so?: strace -p process id of php deamon Yep, that's it. You'll probably want to record the output for analysis, but sometimes it's very

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-12 Thread Per Jessen
Robert Cummings wrote: I can't remember what sort of environment the OP was in, but if any sort of organised testing is done, the use of two different APIs will just about double the test-effort. Which is why I still think the best option is to mandate _one_ of the APIs and choose your

Re: [PHP] How to look for unused methods/functions and variables/constants.

2007-12-12 Thread T . Lensselink
On Wed, 12 Dec 2007 10:21:58 +0100, Mathijs van Veluw [EMAIL PROTECTED] wrote: Hello there, We have a large project with lots of classes. Now i am wondering if there is a way to let something check all those files and tell me which methods/functions variables/constants etc.. arn't used

Re: [PHP] How to look for unused methods/functions and variables/constants.

2007-12-12 Thread T . Lensselink
On Wed, 12 Dec 2007 10:21:58 +0100, Mathijs van Veluw [EMAIL PROTECTED] wrote: Hello there, We have a large project with lots of classes. Now i am wondering if there is a way to let something check all those files and tell me which methods/functions variables/constants etc.. arn't used

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 2:22 PM -0600 12/10/07, Jay Blanchard wrote: Without order there cannot be randomness. Without randomness, you wouldn't know what order was. This is one of those yin-yang things. There is simply order and randomness existing in our minds. There is no order, nor randomness, existing in

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Jochem Maas
tedd wrote: At 5:15 PM -0500 12/10/07, Daniel Brown wrote: Just for fun, I decided to write out an algorithm to randomize with a never-known seed that would update constantly, with no human or external script intervention required to initiate or maintain it. My guess is that if there

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 2:46 PM -0500 12/10/07, Robert Cummings wrote: On Mon, 2007-12-10 at 11:37 -0800, Stephen Johnson wrote: True randomization is only really possible in nature. Can you say for certain nature is truly random? Just because the seed may have occurred 13.7 billion years ago and we don't know

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 2:32 PM -0500 12/10/07, Nathan Nobbe wrote: Random numbers with Gauss distribution (normal distribution). A correct alghoritm. Without aproximations, like Smaaps' It is specially usefull for simulations in physics. Check yourself, and have a fun. -snip- JanS student of astronomy on Warsaw

Re: [PHP] Incorporating a PHP/MySQL based search

2007-12-12 Thread tedd
At 5:36 PM -0500 12/8/07, Steve Finkelstein wrote: Hey folks, One area I lack experience in is writting a solution to index/search on a site. Would anyone be kind enough and point me in the right direction as far as any books which discuss some simple solutions or articles/blogs on the web?

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 5:15 PM -0500 12/10/07, Daniel Brown wrote: Just for fun, I decided to write out an algorithm to randomize with a never-known seed that would update constantly, with no human or external script intervention required to initiate or maintain it. My guess is that if there was a time that

Re: [PHP] Regular expressions

2007-12-12 Thread tedd
At 2:04 AM -0500 12/12/07, Robert Cummings wrote: ?php if( strlen( $pw1 ) 6 || !ereg( '[[:digit:]]', $pw1 ) || strlen( ereg_replace( '[^[:alpha:]]', '', $pw1 ) ) 2 || strlen( ereg_replace( '[[:alnum:][:space:]]', '', $pw1 ) ) 1 ) { // error message } ? Cheers,

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 3:04 PM -0500 12/10/07, Daniel Brown wrote: On Dec 10, 2007 2:28 PM, AmirBehzad Eslami [EMAIL PROTECTED] wrote: For some computer-based simulation, i need to generate random numbers that have a normal distribution. [snip!] Unfortunately, because computers are logical, there's no such

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Daniel Brown
On Dec 12, 2007 9:00 AM, tedd [EMAIL PROTECTED] wrote: At 3:04 PM -0500 12/10/07, Daniel Brown wrote: Unfortunately, because computers are logical, there's no such thing (at least as of yet) as a truly random number being generated by a machine. Unless the computer is tied to a

Re: [PHP] Re: running cmd via php

2007-12-12 Thread Daniel Brown
On Dec 11, 2007 9:20 PM, Stephen Johnson [EMAIL PROTECTED] wrote: Google : php exexcute windows commands You can even hit the I'm feeling lucky button. ;) I was actually going to say the exact same thing. ;-P -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If at

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-12 Thread Nathan Nobbe
On Dec 12, 2007 4:47 AM, Per Jessen [EMAIL PROTECTED] wrote: Robert Cummings wrote: I can't remember what sort of environment the OP was in, but if any sort of organised testing is done, the use of two different APIs will just about double the test-effort. Which is why I still think the

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 10:47 +0100, Per Jessen wrote: Robert Cummings wrote: I can't remember what sort of environment the OP was in, but if any sort of organised testing is done, the use of two different APIs will just about double the test-effort. Which is why I still think the best

RE: [PHP] How to install ISAPI version on Vista IIS 6

2007-12-12 Thread SED
That's right. I'm running IIS 7 not IIS 6. I was to fast reading the version 6 in the about box. I found out I needed to setup the IIS 7 with ISAPImodule specially. I found that out by expanding the IIS7-setup-option-tree to the bottom. They at Microsoft are very clever to hide this, ASP vs. PHP

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 09:00 -0500, tedd wrote: At 3:04 PM -0500 12/10/07, Daniel Brown wrote: On Dec 10, 2007 2:28 PM, AmirBehzad Eslami [EMAIL PROTECTED] wrote: For some computer-based simulation, i need to generate random numbers that have a normal distribution. [snip!]

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 09:00 -0500, tedd wrote: At 2:22 PM -0600 12/10/07, Jay Blanchard wrote: Without order there cannot be randomness. Without randomness, you wouldn't know what order was. You're random with disorder. This is one of those yin-yang things. Not really :) There is

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 09:15 -0500, tedd wrote: At 2:46 PM -0500 12/10/07, Robert Cummings wrote: On Mon, 2007-12-10 at 11:37 -0800, Stephen Johnson wrote: True randomization is only really possible in nature. Can you say for certain nature is truly random? Just because the seed may have

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robin Vickery
On 12/12/2007, Daniel Brown [EMAIL PROTECTED] wrote: On Dec 12, 2007 9:00 AM, tedd [EMAIL PROTECTED] wrote: At 3:04 PM -0500 12/10/07, Daniel Brown wrote: Unfortunately, because computers are logical, there's no such thing (at least as of yet) as a truly random number being generated

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 08:59 -0500, tedd wrote: At 5:15 PM -0500 12/10/07, Daniel Brown wrote: Just for fun, I decided to write out an algorithm to randomize with a never-known seed that would update constantly, with no human or external script intervention required to initiate or maintain

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 10:15 -0500, Robert Cummings wrote: On Wed, 2007-12-12 at 09:00 -0500, tedd wrote: At 2:22 PM -0600 12/10/07, Jay Blanchard wrote: Without order there cannot be randomness. Without randomness, you wouldn't know what order was. You're random with disorder.

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Jay Blanchard
[snip] But maybe Tedd is also a bit random and disorderly ;) [/snip] Maybe? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Daniel Brown
On Dec 12, 2007 10:53 AM, Robin Vickery [EMAIL PROTECTED] wrote: Can you define for me where the machine stops and nature starts? I mean, if I make a clock that uses the physical properties of a pendulum to demarcate units of time then the pendulum is obviously part of the machine. But if I

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Daniel Brown
On Dec 12, 2007 11:04 AM, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] But maybe Tedd is also a bit random and disorderly ;) [/snip] Maybe? In Tedd's defense, there's a fine line between genius and insanity, and he keeps getting closer and closer to that genius side. ;-P I don't

[PHP] issues with imap_qprint()

2007-12-12 Thread Max Frigge
Hey there, I try to decode the subjects of an email with German umlaute (öäü ..), which are encoded in in quoted printable. For Example ... the string Gr=FC=DFen has to be converted to Grüßen. I tried it with a little example and it worked fine: ?php $test = imap_qprint(Gr=FC=DFen); $handle =

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 11:16 -0500, Daniel Brown wrote: On Dec 12, 2007 10:53 AM, Robin Vickery [EMAIL PROTECTED] wrote: Can you define for me where the machine stops and nature starts? I mean, if I make a clock that uses the physical properties of a pendulum to demarcate units of time

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Jochem Maas
Robert Cummings wrote: The universe is the machine... all sub machines are part of the greater machine that is the universe. heh, that makes me a browser. :-P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql DATE_FORMAT() question

2007-12-12 Thread Adam Williams
nevermind, I see I had a mistake in my mysql statement, I should of been: select DATE_FORMAT(testdate, '%m\-%d\-%Y') as date_column from testtable; please disregard. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql DATE_FORMAT() question

2007-12-12 Thread Adam Williams
I ran the commands: CREATE TABLE testtable ( testdate DATETIME); INSERT INTO testtable (testdate) VALUES (now()); and then I want to select it but format it to show the date only (not the time, and yes I know I could use DATE instead of DATETIME, but there may be cases where I need to show

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Daniel Brown
On Dec 12, 2007 11:26 AM, Robert Cummings [EMAIL PROTECTED] wrote: The universe is the machine... all sub machines are part of the greater machine that is the universe. As such, the deer is indeed part of the machine as are the decaying isotopes that were probably formed in some process of

[PHP] determine date range

2007-12-12 Thread slith
I'm working on hotel type booking script where prices will vary depending on the season. prices are updated every year so i need to take a user inputed date and determine which season the date falls under. i figured i can convert all dates into a timestamp and then run a series conditional

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Jason Pruim
On Dec 12, 2007, at 11:31 AM, Daniel Brown wrote: On Dec 12, 2007 11:26 AM, Robert Cummings [EMAIL PROTECTED] wrote: The universe is the machine... all sub machines are part of the greater machine that is the universe. As such, the deer is indeed part of the machine as are the decaying

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 11:43 -0500, Jason Pruim wrote: On Dec 12, 2007, at 11:31 AM, Daniel Brown wrote: On Dec 12, 2007 11:26 AM, Robert Cummings [EMAIL PROTECTED] wrote: The universe is the machine... all sub machines are part of the greater machine that is the universe. As

Re: [PHP] determine date range

2007-12-12 Thread Andrew Ballard
On Dec 12, 2007 11:39 AM, slith [EMAIL PROTECTED] wrote: I'm working on hotel type booking script where prices will vary depending on the season. prices are updated every year so i need to take a user inputed date and determine which season the date falls under. i figured i can convert all

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 17:50 +0100, Jochem Maas wrote: Robert Cummings wrote: The universe is the machine... all sub machines are part of the greater machine that is the universe. heh, that makes me a browser. :-P Not IE I hope :B Cheers, Rob. --

[PHP] Install syck on PHP4

2007-12-12 Thread GoWtHaM NaRiSiPaLli
I am trying to install php4-syck but there is no package for it on apt repository on ubuntu. So I got the .deb package and did #dpkg -i php4-syck.x.deb it installed the package and I restarted the apache webserver and tried to run syck_load() function. It throws me an error that the function is

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 3:13 PM +0100 12/12/07, Jochem Maas wrote: tedd wrote: At 5:15 PM -0500 12/10/07, Daniel Brown wrote: Just for fun, I decided to write out an algorithm to randomize with a never-known seed that would update constantly, with no human or external script intervention required to

Re: [PHP] determine date range

2007-12-12 Thread slith
yes, i was trying to keep things simple and avoid using a database but i think may go that route like you suggested. Andrew Ballard wrote: Will the boundary dates for each season change from one year to the next? If so, I would probably store the seasons in a database table and then just

Re: [PHP] Incorporating a PHP/MySQL based search

2007-12-12 Thread Steve Finkelstein
Thanks Tedd... looks like a promising link. I'll take a look! On 12/12/07, tedd [EMAIL PROTECTED] wrote: At 5:36 PM -0500 12/8/07, Steve Finkelstein wrote: Hey folks, One area I lack experience in is writting a solution to index/search on a site. Would anyone be kind enough and point me in

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 10:12 AM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 08:59 -0500, tedd wrote: At 5:15 PM -0500 12/10/07, Daniel Brown wrote: Just for fun, I decided to write out an algorithm to randomize with a never-known seed that would update constantly, with no human or external

[PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-12 Thread Bob Sabiston
Hello, I'm trying to read some zlib-compressed data from a regular binary file. When I try to attach the zlib compression filter, I am getting an error: something about how the prebuffered data didn't work with the filter and so the filter wasn't added to the filter chain. I looked

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 11:43 AM -0500 12/12/07, Jason Pruim wrote: *Gets ready to duck from all the non-deer eating people* Drat! There are lot's of things that are non-deer -- even ducks. But they don't all eat people. The world is getting out of whack again. Cheers, tedd -- --- http://sperling.com

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 10:04 AM -0600 12/12/07, Jay Blanchard wrote: [snip] But maybe Tedd is also a bit random and disorderly ;) [/snip] Maybe? Hey! I resemble that remark. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 11:00 AM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 10:15 -0500, Robert Cummings wrote: On Wed, 2007-12-12 at 09:00 -0500, tedd wrote: At 2:22 PM -0600 12/10/07, Jay Blanchard wrote: Without order there cannot be randomness. Without randomness, you wouldn't know

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 10:18 AM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 09:15 -0500, tedd wrote: You most certainly have a point there. Our identification, classification, and definition of order is really what's at issue. Order and randomness are simply our perceptions of the world around

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 10:17 AM -0500 12/12/07, Robert Cummings wrote: In my ancient past I worked with a x-ray detector and we simply truncated to the tens digit -- that was pretty random. Random seeming you mean. As mentioned in the original post, just because the timeline and sample space is immense

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 10:15 AM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 09:00 -0500, tedd wrote: There is simply order and randomness existing in our minds. There is no order, nor randomness, existing in nature, it's our perception, clarification, and categorization of nature that demands

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Nathan Nobbe
On Dec 12, 2007 1:16 PM, tedd [EMAIL PROTECTED] wrote: At 10:17 AM -0500 12/12/07, Robert Cummings wrote: In my ancient past I worked with a x-ray detector and we simply truncated to the tens digit -- that was pretty random. Random seeming you mean. As mentioned in the original post,

[PHP] apc and cli

2007-12-12 Thread Ravi Menon
Hi, We have long running daemons written in php ( cli, non-apache contexts) with the typical pattern: while( !$shutdown ) { $c = new SomeClass; $c-process(); } For performance reasons, would it help if apc.enable_cli is turned on: apc.enable_cli integer Mostly for testing and

Re: [PHP] apc and cli

2007-12-12 Thread Nathan Nobbe
On Dec 12, 2007 2:33 PM, Ravi Menon [EMAIL PROTECTED] wrote: Hi, We have long running daemons written in php ( cli, non-apache contexts) with the typical pattern: while( !$shutdown ) { $c = new SomeClass; $c-process(); } For performance reasons, would it help if apc.enable_cli

Re: [PHP] Install syck on PHP4

2007-12-12 Thread Richard Lynch
On Wed, December 12, 2007 11:35 am, GoWtHaM NaRiSiPaLli wrote: I am trying to install php4-syck but there is no package for it on apt repository on ubuntu. So I got the .deb package and did #dpkg -i php4-syck.x.deb it installed the package and I restarted the apache webserver and tried to

Re: [PHP] apc and cli

2007-12-12 Thread Richard Lynch
On Wed, December 12, 2007 1:33 pm, Ravi Menon wrote: We have long running daemons written in php ( cli, non-apache contexts) with the typical pattern: while( !$shutdown ) { $c = new SomeClass; $c-process(); } For performance reasons, would it help if apc.enable_cli is turned on:

[PHP] safe_mode_include_dir

2007-12-12 Thread Tony Beyers
I'm running php 5.2.5 with these settings in a virtualhost block in apache 2.0.61: php_admin_flag safe_mode on php_admin_value include_path /afs/msu.edu/.../web php_admin_value safe_mode_include_dir /afs/msu.edu/.../web I've got an index.php file in web/support/ that does

[PHP] safe_mode_include_dir

2007-12-12 Thread Tony Beyers
I'm running php 5.2.5 with these settings in a virtualhost block in apache 2.0.61: php_admin_flag safe_mode on php_admin_value include_path /afs/msu.edu/.../web php_admin_value safe_mode_include_dir /afs/msu.edu/.../web I've got an index.php file in web/support/ that does a

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 12:40 -0500, tedd wrote: At 10:12 AM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 08:59 -0500, tedd wrote: At 5:15 PM -0500 12/10/07, Daniel Brown wrote: Just for fun, I decided to write out an algorithm to randomize with a never-known seed that

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 13:16 -0500, tedd wrote: At 10:17 AM -0500 12/12/07, Robert Cummings wrote: In my ancient past I worked with a x-ray detector and we simply truncated to the tens digit -- that was pretty random. Random seeming you mean. As mentioned in the original post, just

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 13:18 -0500, tedd wrote: At 10:18 AM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 09:15 -0500, tedd wrote: You most certainly have a point there. Our identification, classification, and definition of order is really what's at issue. Order and

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 13:21 -0500, tedd wrote: At 11:00 AM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 10:15 -0500, Robert Cummings wrote: On Wed, 2007-12-12 at 09:00 -0500, tedd wrote: At 2:22 PM -0600 12/10/07, Jay Blanchard wrote: Without order there cannot be

Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-12 Thread Richard Lynch
On Wed, December 12, 2007 11:28 am, Bob Sabiston wrote: I'm trying to read some zlib-compressed data from a regular binary file. When I try to attach the zlib compression filter, I am getting an error: something about how the prebuffered data didn't work with the filter and so the filter

Re: [PHP] safe_mode_include_dir

2007-12-12 Thread Daniel Brown
Tony, Calm down. It may take us 21 minutes to respond sometimes, but we will. No need to repost. ;-P On Dec 12, 2007 3:26 PM, Tony Beyers [EMAIL PROTECTED] wrote: I'm running php 5.2.5 with these settings in a virtualhost block in apache 2.0.61: php_admin_flag safe_mode on

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 13:13 -0500, tedd wrote: At 10:15 AM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 09:00 -0500, tedd wrote: There is simply order and randomness existing in our minds. There is no order, nor randomness, existing in nature, it's our perception,

Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-12 Thread Bob Sabiston
On Dec 12, 2007, at 2:31 PM, Richard Lynch wrote: On Wed, December 12, 2007 11:28 am, Bob Sabiston wrote: I'm trying to read some zlib-compressed data from a regular binary file. When I try to attach the zlib compression filter, I am getting an error: something about how the prebuffered

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 1:33 PM -0500 12/12/07, Nathan Nobbe wrote: On Dec 12, 2007 1:16 PM, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Just because someone said it, doesn't mean it's true. pfft; just because you dont believe it doenst mean its false. Nope, but I find it difficult o believe. I

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 3:36 PM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 13:18 -0500, tedd wrote: My opinion is always the same regardless of how many times I change it. Contradiction. Change implies not the same. I'm sure your tongue was in your cheek though when you wrote it :) Cheers, Rob

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 3:42 PM -0500 12/12/07, Robert Cummings wrote: Yes, but what if my disorder was random? How could you prove it is random? Give me an example of something you can put into disorder that doesn't use the premise of order? For instance throwing a handful of sand into the air is expected to

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 3:35 PM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 13:16 -0500, tedd wrote: At 10:17 AM -0500 12/12/07, Robert Cummings wrote: In my ancient past I worked with a x-ray detector and we simply truncated to the tens digit -- that was pretty random. Random seeming

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread tedd
At 3:34 PM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 13:13 -0500, tedd wrote: Just because we think, does not prove randomness, nor order, in nature -- it only proves that we think about it. Actually, order is proven. The fact that I can re-arrange objects into an order

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Daniel Brown
On Dec 12, 2007 3:42 PM, Robert Cummings [EMAIL PROTECTED] wrote: How could you prove it is random? Give me an example of something you can put into disorder that doesn't use the premise of order? For instance throwing a handful of sand into the air is expected to obey the establish laws of

Re: [PHP] safe_mode_include_dir

2007-12-12 Thread Tony Beyers
Sorry about the double posting. I thought I sent the first email before I was subscribed. I definitely should've pointed out that the code works with safe_mode off so I know the paths are correct. I'm actually not the author of the code. I'm a sys admin trying to upgrade the site with safe_mode

RE: [PHP] safe_mode_include_dir

2007-12-12 Thread Andrés Robinet
-Original Message- From: Tony Beyers [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 12, 2007 5:55 PM To: PHP General list Subject: Re: [PHP] safe_mode_include_dir Sorry about the double posting. I thought I sent the first email before I was subscribed. I definitely

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Andrés Robinet
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 12, 2007 6:35 PM To: PHP General list Subject: RE: [PHP] Generating Random Numbers with Normal Distribution At 3:42 PM -0500 12/12/07, Robert Cummings wrote: Yes, but what if my disorder was

[PHP] temp tables mysql OT

2007-12-12 Thread tedd
Hi gang: Another mysql question. I would like to create a temporary table to perform searches. From my main table, I need to exclude records that have certain fields that are null or empty; and then sort the final result. I've spent over an hour looking at How do I set up a temporary table

Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-12 Thread Casey
Try gzuncompress(); On Dec 12, 2007, at 1:03 PM, Bob Sabiston [EMAIL PROTECTED] wrote: On Dec 12, 2007, at 2:31 PM, Richard Lynch wrote: On Wed, December 12, 2007 11:28 am, Bob Sabiston wrote: I'm trying to read some zlib-compressed data from a regular binary file. When I try to

Re: [PHP] temp tables mysql OT

2007-12-12 Thread Chris
tedd wrote: Hi gang: Another mysql question. I would like to create a temporary table to perform searches. From my main table, I need to exclude records that have certain fields that are null or empty; and then sort the final result. Should be possible without a temp table I think.. I've

Re: [PHP] apc and cli

2007-12-12 Thread Ravi Menon
Thanks for clarifying my doubts - the steps below sounds right to me. I was just considering the overall perf. of such php daemons and whether we can get some free perf. boost with that apc setting. Ravi On Dec 12, 2007 12:19 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, December 12,

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 16:20 -0500, tedd wrote: At 3:34 PM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 13:13 -0500, tedd wrote: Just because we think, does not prove randomness, nor order, in nature -- it only proves that we think about it. Actually, order is proven.

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 16:21 -0500, tedd wrote: At 3:35 PM -0500 12/12/07, Robert Cummings wrote: On Wed, 2007-12-12 at 13:16 -0500, tedd wrote: At 10:17 AM -0500 12/12/07, Robert Cummings wrote: In my ancient past I worked with a x-ray detector and we simply truncated to the tens

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Robert Cummings
On Wed, 2007-12-12 at 16:34 -0500, tedd wrote: At 3:42 PM -0500 12/12/07, Robert Cummings wrote: Yes, but what if my disorder was random? How could you prove it is random? Give me an example of something you can put into disorder that doesn't use the premise of order? For instance

[PHP] Session call not creating file in session_save_path - perms? (newbie)

2007-12-12 Thread Robert Erbaron
OK, I've read every message on the list for the last year that contains 'sessions'. I've read through (bleary eyed, admittedly) http://us2.php.net/session. And I swear, honest, that I had this working on another box (which is no longer available to me.) I've checked phpinfo - session support is

Re: [PHP] Session call not creating file in session_save_path - perms? (newbie)

2007-12-12 Thread Casey
Read manual please. http://us.php.net/session_save_path On Dec 12, 2007 9:27 PM, Robert Erbaron [EMAIL PROTECTED] wrote: OK, I've read every message on the list for the last year that contains 'sessions'. I've read through (bleary eyed, admittedly) http://us2.php.net/session. And I swear,

Re: [PHP] Session call not creating file in session_save_path - perms? (newbie)

2007-12-12 Thread Chris
Robert Erbaron wrote: OK, I've read every message on the list for the last year that contains 'sessions'. I've read through (bleary eyed, admittedly) http://us2.php.net/session. And I swear, honest, that I had this working on another box (which is no longer available to me.) I've checked phpinfo

Re: [PHP] Session call not creating file in session_save_path - perms? (newbie)

2007-12-12 Thread Robert Erbaron
Aw crap. :) (session_save_path BEFORE session_start.) Works fine now... now to clean the egg off face. Thx, On Dec 12, 2007 11:31 PM, Casey [EMAIL PROTECTED] wrote: Read manual please. http://us.php.net/session_save_path -- RE, Chicago