RE: [PHP] which one is faster

2010-10-06 Thread Bob McConnell
From: Steve Staples On Tue, 2010-10-05 at 20:53 +0100, Ashley Sheridan wrote: On Tue, 2010-10-05 at 15:46 -0400, Steve Staples wrote: On Tue, 2010-10-05 at 20:35 +0100, Ashley Sheridan wrote: On Tue, 2010-10-05 at 15:28 -0400, chris h wrote: Benchmark and find out! :)

Re: [PHP] which one is faster

2010-10-06 Thread Peter Lind
On 6 October 2010 14:40, Bob McConnell r...@cbord.com wrote: From: Steve Staples On Tue, 2010-10-05 at 20:53 +0100, Ashley Sheridan wrote: On Tue, 2010-10-05 at 15:46 -0400, Steve Staples wrote: On Tue, 2010-10-05 at 20:35 +0100, Ashley Sheridan wrote: On Tue, 2010-10-05 at 15:28 -0400,

Re: [PHP] which one is faster

2010-10-06 Thread Robert Cummings
On 10-10-06 08:52 AM, Peter Lind wrote: Where exactly do you get the part about double quotes from? Can't seem to locate it in the any of the relevant specs (xhtml or xml). Also, never seen an xml or xhtml validator choke on single quotes. http://www.w3.org/TR/xhtml1/#h-4.2 Cheers, Rob. --

Re: [PHP] which one is faster

2010-10-06 Thread Robert Cummings
On 10-10-06 09:06 AM, Peter Lind wrote: On 6 October 2010 15:03, Robert Cummingsrob...@interjinn.com wrote: On 10-10-06 08:52 AM, Peter Lind wrote: Where exactly do you get the part about double quotes from? Can't seem to locate it in the any of the relevant specs (xhtml or xml). Also, never

Re: [PHP] which one is faster

2010-10-06 Thread Andy McKenzie
On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings rob...@interjinn.com wrote: On 10-10-06 08:52 AM, Peter Lind wrote: Where exactly do you get the part about double quotes from? Can't seem to locate it in the any of the relevant specs (xhtml or xml). Also, never seen an xml or xhtml validator

Re: [PHP] which one is faster

2010-10-06 Thread Andy McKenzie
On Wed, Oct 6, 2010 at 9:25 AM, Peter Lind peter.e.l...@gmail.com wrote: On 6 October 2010 15:21, Andy McKenzie amckenz...@gmail.com wrote: On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings rob...@interjinn.com wrote: On 10-10-06 08:52 AM, Peter Lind wrote: Where exactly do you get the part

Re: [PHP] which one is faster

2010-10-06 Thread Peter Lind
On 6 October 2010 15:31, Andy McKenzie amckenz...@gmail.com wrote: *snip* Double quotes are the only example given:  in most documentation if there are two allowed forms, there are two examples, or at least a note in the text.  I haven't read enough of this particular document to know if

Re: [PHP] which one is faster

2010-10-06 Thread Steve Staples
On Wed, 2010-10-06 at 15:43 +0200, Peter Lind wrote: On 6 October 2010 15:31, Andy McKenzie amckenz...@gmail.com wrote: *snip* Double quotes are the only example given: in most documentation if there are two allowed forms, there are two examples, or at least a note in the text. I

[PHP] Casting from parent class to child

2010-10-06 Thread Teto
Hi, I'm trying to extends the base class DateTime. parent::createFromFormat(H.i d.m.Y, $string); returns a DateTime and I want to convert it into a DateTimePlus (my own extended class). What's the best way to do this plz ? Some code: class DateTimePlus extends DateTime { static function

[PHP] PHP Unconference Europe

2010-10-06 Thread Tom Calpin
I'm not affiliated with the PHP Unconference in any way but saw this on another mailing list, so just passing it on here in case anyone is interested. -Tom We are delighted to announce that PHP Unconference Europe will take place on: 19th 20th February 2011 in:

Re: [PHP] Casting from parent class to child

2010-10-06 Thread David Harkness
Casting does not change an object. You must copy the relevant value(s) from the object returned into a new DateTimePlus. Since DateTime's constructor takes only a string, and I assume it won't accept your format directly, you're better off converting the string into a Unix timestamp and creating a

[PHP] Class mysqli not found

2010-10-06 Thread sueandant
I'm still fighting a losing battle in my attempts to get PHP speak to mysqli. I can access MySql via the prompt. Apache and PHP are installed and working. In Apache's config file PHPIniDir is set to C:\php, which is where I unzipped the binary download files, and set LoadModule php5_module

Re: [PHP] Class mysqli not found

2010-10-06 Thread sueandant
Yes, I've run phpinfo() and mysqli is listed in the detailed output. - Original Message - From: Jay Blanchard jblanch...@pocket.com To: sueandant hollandsath...@tiscali.co.uk; sstap...@mnsi.net Cc: PHP php-general@lists.php.net Sent: Wednesday, October 06, 2010 9:31 PM Subject: RE:

Re: RES: [PHP] Class mysqli not found

2010-10-06 Thread sueandant
phpinfo() includes mysqli in its detailed output: mysqli MysqlI Support enabled Client API library version mysqlnd 5.0.7-dev - 091210 - $Revision: 300533 $ Active Persistent Links 0 Inactive Persistent Links 0 Active Links 0 Directive Local Value Master Value