php-general Digest 15 Dec 2007 17:10:24 -0000 Issue 5182

2007-12-15 Thread php-general-digest-help
php-general Digest 15 Dec 2007 17:10:24 - Issue 5182 Topics (messages 265899 through 265928): Re: how to Harmonic Mean manual 265899 by: Per Jessen 265924 by: LKSunny Re: determine date range 265900 by: Richard Lynch Re: How to look for unused methods/functions and

php-general Digest 16 Dec 2007 05:22:37 -0000 Issue 5183

2007-12-15 Thread php-general-digest-help
php-general Digest 16 Dec 2007 05:22:37 - Issue 5183 Topics (messages 265929 through 265944): Re: Multiple File Downloads 265929 by: Richard Lynch 265935 by: Al 265942 by: David Giragosian Re: how to handle inserting special characters into a mysql field

[PHP] FW: ezmlm warning

2007-12-15 Thread Andrés Robinet
I've just got this message... I also see no updates here http://news.php.net/php.general/ since Friday. Any clues on what's going on?? Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, December 15, 2007 11:55 AM To: [EMAIL PROTECTED] Subject: ezmlm

Re: [PHP] Multiple File Downloads

2007-12-15 Thread Richard Lynch
On Fri, December 14, 2007 2:32 pm, David Giragosian wrote: Is there a way to download multiple files in one go, short of zipping them first into a single file? No. The HTTP protocol is One Request, One Response Document Note that you can use PHP to dynamically build a zip file of whatever

Re: [PHP] how to handle inserting special characters into a mysql field

2007-12-15 Thread Richard Lynch
On Fri, December 14, 2007 11:03 am, Adam Williams wrote: $query = sprintf(SELECT * FROM users WHERE user='%s' AND password='%s', mysql_real_escape_string($user), mysql_real_escape_string($password)); and I understand it uses the %s because of sprintf(), to indicate

Re: [PHP] safe_mode_include_dir

2007-12-15 Thread Richard Lynch
On Thu, December 13, 2007 1:49 pm, Nisse Engström wrote: On Wed, 12 Dec 2007 15:43:28 -0500, Daniel Brown wrote: Is there a specific reason you're using require_once() instead of include_once() ? There actually is a difference include() and include_once() will only include the file

Re: [PHP] Help Sending Mail

2007-12-15 Thread Richard Lynch
On Tue, December 11, 2007 4:24 pm, Daniel Brown wrote: On Dec 11, 2007 12:20 PM, Richard Lynch [EMAIL PROTECTED] wrote: I dunno if RFC822 specifies which ending but I *do* know that this breaks the current PEAR mimePart.php code. RFC 822 has been obsolete since RFC 2822 was introduced

Re: [PHP] sftp connecting to remove server via php

2007-12-15 Thread Richard Lynch
On Tue, December 11, 2007 2:01 pm, blackwater dev wrote: I have to write a script that will connect to a remove server using sftp and pull in specific files for processing. Currently I can get to the server by just using sftp [EMAIL PROTECTED] How can I open these files via php? Is the

Re: [PHP] how to handle inserting special characters into a mysql field

2007-12-15 Thread Børge Holen
On Saturday 15 December 2007 18:59:12 Richard Lynch wrote: On Fri, December 14, 2007 11:03 am, Adam Williams wrote: $query = sprintf(SELECT * FROM users WHERE user='%s' AND password='%s', mysql_real_escape_string($user), mysql_real_escape_string($password));

[PHP] Re: Multiple File Downloads

2007-12-15 Thread Al
What are the files and what are you going to do with them at the client? If they are to be an image mosaic, then compose it first and then send it. If text docs, compose as a pdf and send it. if just files, bundle them in a compressed file and let the user click on it to open the file.

[PHP] php code compiles, produces good html output, but crashes when put through browser

2007-12-15 Thread Mary Anderson
Hi, Need some help with debugging procedures. This is a postgresql/PHP running with PHP 5. I have used both IE7 and mozilla 5.0 with this file. The postgres part works fine, and the html that is generated is OK, but the .php file hangs when I run it through the browser. I have two

Re: [PHP] php code compiles, produces good html output, but crashes when put through browser

2007-12-15 Thread Daniel Brown
On Dec 15, 2007 4:55 PM, Mary Anderson [EMAIL PROTECTED] wrote: My code http://demog.berkeley.edu/~maryfran/memdev/get_data_set.php Mary, Can you provide the actual code for the page? None of us can really help you out too much without seeing more than a blank page. -- Daniel P.

Re: [PHP] FW: ezmlm warning

2007-12-15 Thread Daniel Brown
On Dec 15, 2007 12:10 PM, Andrés Robinet [EMAIL PROTECTED] wrote: I've just got this message... I also see no updates here http://news.php.net/php.general/ since Friday. Any clues on what's going on?? Looks to me like there was some reason that the emails being sent to you were bouncing,

Re: [PHP] Help Sending Mail

2007-12-15 Thread Daniel Brown
On Dec 15, 2007 1:09 PM, Richard Lynch [EMAIL PROTECTED] wrote: A standard nobody follows isn't a standard; It's a waste of paper. Only if you printed it out in the first place. ;-P That aside, I completely agree with you. It's sort of like the ^M versus \n versus \r\n line

[PHP] RE: [SOLVED] [PHP] FW: ezmlm warning

2007-12-15 Thread Andrés Robinet
I know what's the issue now. The mailing list software was sending me a notification about some bounces, dated Dec 4th (which I didn't notice at first). That's ok since we had an issue with Exim and we stopped it some time for maintenance. I thought it was a recent issue, because I got this

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-15 Thread Richard Lynch
On Wed, December 12, 2007 11:07 pm, Robert Cummings wrote: Once again, we're not trying to prove order. Order obviously exists. I'm not sure I'd agree that order exists in the first place, much less randomness or disorder. They could all be solely our human incorrect interpretation. And I've

Re: [PHP] Re: Multiple File Downloads

2007-12-15 Thread David Giragosian
On 12/15/07, Al [EMAIL PROTECTED] wrote: What are the files and what are you going to do with them at the client? They are going to be .csv files extracted from a DICOM treatment plan file. If they are to be an image mosaic, then compose it first and then send it. If text docs, compose

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-15 Thread Daniel Brown
On Dec 15, 2007 6:10 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, December 12, 2007 11:07 pm, Robert Cummings wrote: Once again, we're not trying to prove order. Order obviously exists. I'm not sure I'd agree that order exists in the first place, much less randomness or disorder. They

Re: [PHP] php code compiles, produces good html output, but crashes when put through browser

2007-12-15 Thread Casey
Comment out all Javascript. On Dec 15, 2007, at 2:00 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Dec 15, 2007 4:55 PM, Mary Anderson [EMAIL PROTECTED] wrote: My code http://demog.berkeley.edu/~maryfran/memdev/get_data_set.php Mary, Can you provide the actual code for the page?

Re: [PHP] php code compiles, produces good html output, but crashes when put through browser

2007-12-15 Thread Jochem Maas
Casey wrote: Comment out all Javascript. Casey - exactly how would javascript being causing a webserver to segfault in this context??? On Dec 15, 2007, at 2:00 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Dec 15, 2007 4:55 PM, Mary Anderson [EMAIL PROTECTED] wrote: My code

Re: [PHP] temp tables mysql OT

2007-12-15 Thread Jochem Maas
tedd wrote: At 12:20 PM +0100 12/13/07, Zoltán Németh wrote: 2007. 12. 12, szerda keltezéssel 20.13-kor tedd ezt írta: 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

Re: [PHP] php code compiles, produces good html output, but crashes when put through browser

2007-12-15 Thread Casey
On Dec 15, 2007 11:27 PM, Jochem Maas [EMAIL PROTECTED] wrote: Casey wrote: Comment out all Javascript. Casey - exactly how would javascript being causing a webserver to segfault in this context??? On Dec 15, 2007, at 2:00 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Dec 15, 2007