php-general Digest 2 Jul 2010 16:25:36 -0000 Issue 6827

2010-07-02 Thread php-general-digest-help
php-general Digest 2 Jul 2010 16:25:36 - Issue 6827 Topics (messages 306625 through 306642): Re: NULL Date Entries... 306625 by: David Robley 306626 by: David Robley PHP 5.2.14RC2 5.3.3RC2 Released for Testing 306627 by: Johannes Schlüter detect a script crash

Re: [PHP] NULL Date Entries...

2010-07-02 Thread David Robley
Paul M Foster wrote: snip However, checking to ensure the date is indeed valid and not something like 31st February is a good idea I agree! :) Wait-- there's not a 31st of February? When did they change that? ;-} Paul I believe it was last February 30th the decision was made...

[PHP] Re: NULL Date Entries...

2010-07-02 Thread David Robley
Don Wieland wrote: In one of my forms, I am building a variable that I can use as an INSERT string. On my form, I have several DATE fields which exist of 3 fields MM - DD - when I build my string it looks like this: array('dbf'='applicant_dob',

[PHP] PHP 5.2.14RC2 5.3.3RC2 Released for Testing

2010-07-02 Thread Johannes Schlüter
The second release candidates of 5.2.14 and 5.3.3 were just released for testing and can be downloaded here: http://downloads.php.net/ilia/php-5.2.14RC2.tar.bz2 (md5sum: d182560b697003d670ae8a3a804759f3) http://downloads.php.net/johannes/php-5.3.3RC2.tar.bz2 (md5sum:

[PHP] detect a script crash

2010-07-02 Thread Ashley Sheridan
Hi all, Bit of a curve ball here (at least I couldn't find anything on Google yet) but I need a way to be able to detect if a particular php script crashes and generate some form of report from it. Here is the system setup: CentOS system, with the PHP scripts running as CLI called from a bash

Re: [PHP] detect a script crash

2010-07-02 Thread Ashley Sheridan
On Fri, 2010-07-02 at 11:51 +0100, Ashley Sheridan wrote: Hi all, Bit of a curve ball here (at least I couldn't find anything on Google yet) but I need a way to be able to detect if a particular php script crashes and generate some form of report from it. Here is the system setup:

RE: [PHP] php processing name vs. id field

2010-07-02 Thread Bob McConnell
From: Ashley Sheridan Not sure if my other email got through earlier. Replacing the name attribute on form fields with the id one is not feasible at all. They don't even behave the same. What would happen if you had two forms on a page that both had an element with the same name? Using the

RE: [PHP] php processing name vs. id field

2010-07-02 Thread Ashley Sheridan
On Fri, 2010-07-02 at 08:49 -0400, Bob McConnell wrote: From: Ashley Sheridan Not sure if my other email got through earlier. Replacing the name attribute on form fields with the id one is not feasible at all. They don't even behave the same. What would happen if you had two forms on a

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Peter Lind
On 2 July 2010 15:01, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2010-07-02 at 08:49 -0400, Bob McConnell wrote: From: Ashley Sheridan Not sure if my other email got through earlier. Replacing the name attribute on form fields with the id one is not feasible at all. They

[PHP] filter_var_array: apply multiple filters to one field

2010-07-02 Thread Peter Lafferty
Is there any way to apply multiple filters to one field using filter_var_array? Basically I have an email field which I want to sanitize and validate. The docs and any sites I find only tell how to apply one filter at a time using filter_var_array. Regards, Peter Lafferty Software

RE: [PHP] php processing name vs. id field

2010-07-02 Thread tedd
At 2:01 PM +0100 7/2/10, Ashley Sheridan wrote: -snip- I agree with Ash 100%. There is an id and a name attribute for input (et al) tags -- that's html. I can use the attribute name for php and the attribute id for javascript and css because these are different languages with different

RE: [PHP] php processing name vs. id field

2010-07-02 Thread Bob McConnell
From: tedd At 2:01 PM +0100 7/2/10, Ashley Sheridan wrote: -snip- I agree with Ash 100%. There is an id and a name attribute for input (et al) tags -- that's html. ... So, what's the major beef here? Is someone objecting to having both id and name being legal attributes for a tag? If

RE: [PHP] php processing name vs. id field

2010-07-02 Thread tedd
At 8:49 AM -0400 7/2/10, Bob McConnell wrote: These conditions sound like a bugs to me. I can't imagine any reason why different forms could have the same name or id Bob: No offense, but duh! I can imagine, try this: The first form asks for the user's email address. The input statement has

RE: [PHP] php processing name vs. id field

2010-07-02 Thread tedd
At 10:53 AM -0400 7/2/10, Bob McConnell wrote: This discussion began when I pointed out that the name attribute is deprecated in XHTML. This was later confirmed when someone pointed to the actual specification at http://www.w3.org/TR/xhtml1/, however there may be some confusion about the scope

[PHP] Delegating variable-length argument lists

2010-07-02 Thread Jakob Günther
Hi, i'm writing a custom wrapper for the mysqli_stmt class. I have to override the method mysqli_stmt::bind_param. This function uses variable-length argument lists. In my function i want to delegate its arguments to the original function. My first naiv implementation was that: function

Re: [PHP] Past discussion

2010-07-02 Thread Jim Lucas
David McGlone wrote: Hi everyone, I have been searching the archives for a past discussion where some software that some folks use to (I think) save code snippets from e-mails for future references or something of such. Does anyone remember that discussion? I am trying to figure out a

Re: [PHP] Delegating variable-length argument lists

2010-07-02 Thread Jakob Günther
I did not find a solution, so i tried passing a array with references. $arr = array($a, $b); bind_param(ii, $arr); function bind_param($types, $arr){ array_unshift($arr, $types); call_user_func_array (array ($stmt, 'bind_param'), $arr); } This worked in a test-case in one file.

RE: [PHP] php processing name vs. id field

2010-07-02 Thread Bob McConnell
From: tedd At 10:53 AM -0400 7/2/10, Bob McConnell wrote: This discussion began when I pointed out that the name attribute is deprecated in XHTML. This was later confirmed when someone pointed to the actual specification at http://www.w3.org/TR/xhtml1/, however there may be some confusion

RE: [PHP] php processing name vs. id field

2010-07-02 Thread Kirk . Johnson
Bob McConnell r...@cbord.com wrote on 07/02/2010 08:53:30 AM: Arguments against using/dismissing the name attribute in tags is simply nonsense. This discussion began when I pointed out that the name attribute is deprecated in XHTML. This was later confirmed when someone pointed to the

[PHP] complex unf8 indic script rendering and cairo

2010-07-02 Thread shiplu
Anyone knows where I can find cairo (http://www.php.net/cairo) examples. The php sites doesn't have any example or tutorial. I am looking for a way to render complex unf8 indic script. Cairo seems a solution for me though I haven't tried yet. if you have any suggestion on complex indic script

Re: [PHP] Delegating variable-length argument lists

2010-07-02 Thread Adam Richardson
On Fri, Jul 2, 2010 at 11:49 AM, Jakob Günther macgu...@web.de wrote: I did not find a solution, so i tried passing a array with references. $arr = array($a, $b); bind_param(ii, $arr); function bind_param($types, $arr){ array_unshift($arr, $types); call_user_func_array

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Adam Richardson
On Fri, Jul 2, 2010 at 12:28 PM, kirk.john...@zootweb.com wrote: Bob McConnell r...@cbord.com wrote on 07/02/2010 08:53:30 AM: Arguments against using/dismissing the name attribute in tags is simply nonsense. This discussion began when I pointed out that the name attribute is

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Peter Lind
On 2 July 2010 19:52, Adam Richardson simples...@gmail.com wrote: On Fri, Jul 2, 2010 at 12:28 PM, kirk.john...@zootweb.com wrote: Bob McConnell r...@cbord.com wrote on 07/02/2010 08:53:30 AM: Arguments against using/dismissing the name attribute in tags is simply nonsense. This

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Adam Richardson
On Fri, Jul 2, 2010 at 1:59 PM, Peter Lind peter.e.l...@gmail.com wrote: On 2 July 2010 19:52, Adam Richardson simples...@gmail.com wrote: On Fri, Jul 2, 2010 at 12:28 PM, kirk.john...@zootweb.com wrote: Bob McConnell r...@cbord.com wrote on 07/02/2010 08:53:30 AM: Arguments against

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Peter Lind
On 2 July 2010 20:03, Adam Richardson simples...@gmail.com wrote: On Fri, Jul 2, 2010 at 1:59 PM, Peter Lind peter.e.l...@gmail.com wrote: On 2 July 2010 19:52, Adam Richardson simples...@gmail.com wrote: On Fri, Jul 2, 2010 at 12:28 PM, kirk.john...@zootweb.com wrote: Bob McConnell

[PHP] CFP for Surge Scalability Conference 2010

2010-07-02 Thread Jason Dixon
A quick reminder that there's one week left to submit your abstract for this year's Surge Scalability Conference. The event is taking place on Sept 30 and Oct 1, 2010 in Baltimore, MD. Surge focuses on case studies that address production failures and the re-engineering efforts that led to

[PHP] SELECT AVG(rating)

2010-07-02 Thread Ben Miller
Hi - I have a MySQL table full of product reviews and I'm trying to select info for only the top 5 rated products. The only way I can figure out how to do it so far is something like: $query1 = mysql_query(SELECT * FROM products); for($i=1;$i=mysql_num_rows($query1);$i++) { $row1 =

Re: [PHP] SELECT AVG(rating)

2010-07-02 Thread Ashley Sheridan
On Fri, 2010-07-02 at 14:32 -0600, Ben Miller wrote: Hi - I have a MySQL table full of product reviews and I'm trying to select info for only the top 5 rated products. The only way I can figure out how to do it so far is something like: $query1 = mysql_query(SELECT * FROM products);

RE: [PHP] SELECT AVG(rating)

2010-07-02 Thread Ben Miller
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Friday, July 02, 2010 2:43 PM To: b...@tottd.com Cc: php-general@lists.php.net Subject: Re: [PHP] SELECT AVG(rating) On Fri, 2010-07-02 at 14:32 -0600, Ben Miller wrote: Hi - I have a MySQL table full

[PHP] What's wrong in this function? Does not work for me.

2010-07-02 Thread Carlos Sura
Hello, this function does not work for me... And I really don't know what am I doing wrong... Any help?? This function is in a class, and I call it in a form, to create a new user.. $objEmploye=new Employe; if (

Re: [PHP] What's wrong in this function? Does not work for me.

2010-07-02 Thread Ashley Sheridan
On Fri, 2010-07-02 at 22:05 +, Carlos Sura wrote: Hello, this function does not work for me... And I really don't know what am I doing wrong... Any help?? This function is in a class, and I call it in a form, to create a new user.. $objEmploye=new Employe; if (

RE: [PHP] What's wrong in this function? Does not work for me.

2010-07-02 Thread Carlos Sura
Hello Ash, No, I don't get an error message, the thing is, my post form, isn't working... I can't post those fields in database when I fill them up in the form... But, I really don't know why... Do you want my form code? all the entire class.php code?? Thank you for helping me. Carlos Sura.

RE: [PHP] What's wrong in this function? Does not work for me.

2010-07-02 Thread Ashley Sheridan
On Fri, 2010-07-02 at 23:19 +, Carlos Sura wrote: Hello Ash, No, I don't get an error message, the thing is, my post form, isn't working... I can't post those fields in database when I fill them up in the form... But, I really don't know why... Do you want my form code? all the

[PHP] Re: mail() + localhost

2010-07-02 Thread Manuel Lemos
Hello, on 07/01/2010 10:09 AM Shreyas Agasthya said the following: PHP'ers, I am sure this would have been asked a zillion times but I take this as my turn to get some help. I hate to ask such rhetorical questions but quite couldn't understand how to tweak this. All I am trying to do is

[PHP] Re: how to use HTML Symbol Entities with mail() ?

2010-07-02 Thread Manuel Lemos
Hello, on 07/01/2010 10:34 AM cr.vege...@gmail.com said the following: Hi List, I am working on generated emails, using the mail() function. Works fine, but when including characters like #8743 (= and;) or #8744; (= or;) in the message, these characters are displayed as ? in the emails.