[PHP] Re: [PHP-DEV] toString() in SimpleXML?

2005-02-17 Thread Leendert Brouwer
which is not the case). I know that the docs say that you should cast it to a string when you want to do a comparison, but apart from that just being an example, maybe my suggestion is a more obvious one to notice? regards, Leendert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: saving resource objects

2003-12-17 Thread Leendert
"Michael Lewis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I posted this on the PHP-DB list and then realized it was a more general > question about PHP than DB so I am posting it here also hoping someone can > help. > > I have a fairly common problem that I have not been able t

[PHP] Re: BLOB - PHP Peformance DB vs. Web server Opinions

2003-12-04 Thread Leendert
ages, but this is what I can come up with from the top of my head. So, if you must depend on replication, that's a good reason to choose BLOBs for storage. In any other case I'd suggest you don't. Regards, Leendert Brouwer Freelance consultancy http://www.daholygoat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Checking for empty values sent from a form

2003-03-06 Thread Leendert
You usually don't want spaces either foreach($_POST as $val) { if(strlen(trim($val)) < 1) // do what you want } "Rick Emery" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > foreach($HTTP_POST_VARS as $val) > if($val=="") > { > do something > } > - Original M

[PHP] Re: xml_set_character_data_handler logic

2002-09-30 Thread Leendert Brouwer
root node. "Leendert" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "Leendert" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > It appears that: > > > &

[PHP] Re: xml_set_character_data_handler logic

2002-09-30 Thread Leendert
"Leendert" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It appears that: > > xml_set_character_data_handler($parser, 'handleData'); > > calls handleData() 3 times per element. Does anyone know the rea

[PHP] xml_set_character_data_handler logic

2002-09-30 Thread Leendert
It appears that: xml_set_character_data_handler($parser, 'handleData'); calls handleData() 3 times per element. Does anyone know the reason behind this? Sounds like that could be very inefficient. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns