Re: [PHP] Insert new array after specific key in multidimensional array

2012-02-27 Thread Micky Hulse
Hi Xucheng, On Mon, Feb 27, 2012 at 7:41 PM, xucheng wrote: > Maybe you can trans the array into a xml tree , then modify its leaves . Now that sounds like an interesting idea... I will have to research that as an option. Thanks for tip! :) @Eray, I was not able to get your code to work on my

Re: [PHP] Insert new array after specific key in multidimensional array

2012-02-27 Thread xucheng
Maybe you can trans the array into a xml tree , then modify its leaves . RTFSC - Read The F**king Source Code :)! 2012/2/28 Micky Hulse > Thank you Eray! That's a cool approach. Testing code now. I will be > back with my results. :) > > Thank you!!! > > Cheers, > M > > -- > PHP General Mailing

Re: [PHP] Insert new array after specific key in multidimensional array

2012-02-27 Thread Micky Hulse
Thank you Eray! That's a cool approach. Testing code now. I will be back with my results. :) Thank you!!! Cheers, M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL over TCP results on CLOSE_WAIT state in PHP 5.3.8

2012-02-27 Thread Tommy Pham
On Mon, Feb 27, 2012 at 4:06 AM, wrote: > Hi, > > I have a MySQL server A, a server B with PHP 5.3.8 and a server C with PHP > 5.3.3. I'm connecting to the MySQL server on A via TCP from B and C using an > internal network. Server B and C use the same PHP application. There are also > same PHP sc

Re: [PHP] Insert new array after specific key in multidimensional array

2012-02-27 Thread Eray Alakese
$newarray = array() ; foreach($o as $key => $val) { if($prevkey != 'specifickey') { $prevkey = $key; $newarray[$key] = $val; } else $newarray[] = $o_insert; } i think this would help you. i can't test it, I'm sending this from mobile phone :-) Eray Alakese 28 Şub 2

[PHP] Insert new array after specific key in multidimensional array

2012-02-27 Thread Micky Hulse
Howdy! Example code: What would be the best way to insert $o_insert array into $o array after specified key? I hate to just ask for example code, but I can't seem to find the perfect solution. :( Many thanks in advance for the help! Cheers, Micky -- PHP Gen

[PHP] MySQL over TCP results on CLOSE_WAIT state in PHP 5.3.8

2012-02-27 Thread php-list
Hi, I have a MySQL server A, a server B with PHP 5.3.8 and a server C with PHP 5.3.3. I'm connecting to the MySQL server on A via TCP from B and C using an internal network. Server B and C use the same PHP application. There are also same PHP scripts that get data from the database and then cal