php-general Digest 24 Feb 2011 17:20:51 -0000 Issue 7198

2011-02-24 Thread php-general-digest-help
Smart Security, version of virus signature database 5904 (20110224) __ The message was checked by ESET Smart Security. http://www.eset.com ---End Message--- ---BeginMessage--- This is purely of academic interest to me, nothing urgent. I'm just wondering if it's possible to do remoting

[PHP] Re: mysql_num_rows()

2011-02-24 Thread Pete Ford
On 22/02/11 14:40, Gary wrote: Pete Fordp...@justcroft.com wrote in message news:76.48.39221.054c3...@pb1.pair.com... On 22/02/11 13:59, Gary wrote: Pete Fordp...@justcroft.com wrote in message news:a4.c0.39221.b3ca3...@pb1.pair.com... On 22/02/11 05:40, Gary wrote: Can someone tell me

[PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread Dave M G
PHP users, I obviously don't understand what array_walk_recursive does. Can someone break down in simple terms why the following doesn't work? - - - $karamohOutput['test'] = ; function test_print($item, $key) { return $key holds $item\n; } $karamohOutput['test'] .=

Re: [PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread FeIn
Hi, How does the input array look like (the contents of the $karamohArray variable) ? Is your script generating any errors? What do you expect to happen when you call array_walk_recursive? On Thu, Feb 24, 2011 at 1:01 PM, Dave M G mar...@autotelic.com wrote: PHP users, I obviously don't

[PHP] Simplest way of enforcing an array of instances of a specific class but treating the whole thing as an array.

2011-02-24 Thread Richard Quadling
Hi. Brain being a little slow today. My objective is to enforce a parameter to a method to be an array of a specific class (or null). The specific class is LatLng. I want to be able to pass an array of LatLngs to a method. I know I can hint this as ... function(array $LatLngs) {...} and

Re: [PHP] Dotnet Remoting

2011-02-24 Thread Bastien
On 2011-02-24, at 5:17 AM, Gary php-gene...@garydjones.name wrote: This is purely of academic interest to me, nothing urgent. I'm just wondering if it's possible to do remoting with PHP's DOTNET class (http://php.net/manual/en/class.dotnet.php) which I didn't even know existed until

Re: [PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread Dave M G
FeIn, Thank you for responding. what did you expect to happen when you call array_walk_recursive? What I don't understand is why it did not append to the string as it walked through each key/value pair. It seems like even though the variable inside the function called by

Re: [PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread FeIn
Hi, Well, first array_walk_recursive returns a boolean so what you are doing in you script is append a boolean (true or false) that will be converted to string. So if array_walk_recursive will return true you will have the string 1 in $karamohOutput['test'], and if array_walk_recursive will

Re: [PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread Richard Quadling
On 24 February 2011 15:15, Dave M G mar...@autotelic.com wrote: FeIn, Thank you for responding. what did you expect to happen when you call array_walk_recursive? What I don't understand is why it did not append to the string as it walked through each key/value pair. It seems like even

[PHP] Re: Simplest way of enforcing an array of instances of a specific class but treating the whole thing as an array.

2011-02-24 Thread Richard Quadling
On 24 February 2011 12:43, Richard Quadling rquadl...@gmail.com wrote: Hi. Brain being a little slow today. My objective is to enforce a parameter to a method to be an array of a specific class (or null). The specific class is LatLng. I want to be able to pass an array of LatLngs to a

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-24 Thread Steve Staples
On Thu, 2011-02-24 at 11:42 -0500, Gary wrote: Steve Staples sstap...@mnsi.net wrote in message news:1298492194.14826.2425.camel@webdev01... On Wed, 2011-02-23 at 14:56 -0500, Gary wrote: Steve Staples sstap...@mnsi.net wrote in message news:1298490417.14826.2418.camel@webdev01... On

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-24 Thread Gary
it is if ( !empty($_POST['county'])) foreach ( $_POST['county'] AS $id = $name ) echo 'You have selected '. {$name}.'br /'; Frustrating how it was working, now it is not. Thanks again. Gary __ Information from ESET Smart Security, version of virus signature database 5904 (20110224

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-24 Thread Steve Staples
On Thu, 2011-02-24 at 12:52 -0500, Gary wrote: Steve Staples sstap...@mnsi.net wrote in message news:1298568238.14826.2431.camel@webdev01... On Thu, 2011-02-24 at 11:42 -0500, Gary wrote: Steve Staples sstap...@mnsi.net wrote in message news:1298492194.14826.2425.camel@webdev01... On

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-24 Thread Gary
(20110224) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Simplest way of enforcing an array of instances of a specific class but treating the whole thing as an array.

2011-02-24 Thread David Harkness
If each array will contain a single type of object, but you need many of these arrays, each containing a different type of object, I recommend creating a generic instances-of-class array using ArrayObject. You can enforce the type in append(), offsetSet(), and exchangeArray() and then check the

Re: [PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread Jim Lucas
On 2/24/2011 3:01 AM, Dave M G wrote: PHP users, I obviously don't understand what array_walk_recursive does. Can someone break down in simple terms why the following doesn't work? - - - $karamohOutput['test'] = ; function test_print($item, $key) { return $key holds $item\n;

RE: [PHP] Dotnet Remoting

2011-02-24 Thread Daevid Vincent
-Original Message- From: Bastien [mailto:phps...@gmail.com] Sent: Thursday, February 24, 2011 4:18 AM To: Gary Cc: php-general@lists.php.net Subject: Re: [PHP] Dotnet Remoting On 2011-02-24, at 5:17 AM, Gary php-gene...@garydjones.name wrote: This is purely of academic

Re: [PHP] Dotnet Remoting

2011-02-24 Thread Bastien Koert
On Thu, Feb 24, 2011 at 3:33 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Bastien [mailto:phps...@gmail.com] Sent: Thursday, February 24, 2011 4:18 AM To: Gary Cc: php-general@lists.php.net Subject: Re: [PHP] Dotnet Remoting On 2011-02-24, at 5:17 AM,