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

2012-02-28 Thread Shawn McKenzie
On 02/27/2012 08:12 PM, Micky Hulse wrote: > 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. :(

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

2012-02-28 Thread Micky Hulse
On Tue, Feb 28, 2012 at 8:36 AM, Shawn McKenzie wrote: > Might be an easier way but this should work.  You can sort the $before = > true out for yourself :-) Hi Shawn, I've updated your function to do the $before bit: I also set it up to m

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

2012-02-28 Thread Adam Richardson
On Mon, Feb 27, 2012 at 9:12 PM, Micky Hulse wrote: > 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 solutio

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

2012-02-28 Thread Micky Hulse
Hi Adam! On Tue, Feb 28, 2012 at 2:05 PM, Adam Richardson wrote: >> What would be the best way to insert $o_insert array into $o array >> after specified key? Great question. :D Quick answer: It's a Wordpress thang! Long answer: I am working with WordPress and the theme that I am using stores

[PHP] How do I enable more useful PHP error logging?

2012-02-28 Thread Daevid Vincent
My question is, is there a way to enable some PHP configuration that would output more verbose information, such as a backtrace or the URL attempted? In our PHP error log, we have the usual semi-useful information. However this is only a partial story as it's hard to re-create the URL that caused

Re: [PHP] How do I enable more useful PHP error logging?

2012-02-28 Thread Adam Richardson
On Tue, Feb 28, 2012 at 6:14 PM, Daevid Vincent wrote: > My question is, is there a way to enable some PHP configuration that would > output more verbose information, such as a backtrace or the URL attempted? > > In our PHP error log, we have the usual semi-useful information. However > this is o

Re: [PHP] How do I enable more useful PHP error logging?

2012-02-28 Thread Stuart Dallas
On 28 Feb 2012, at 23:14, Daevid Vincent wrote: > My question is, is there a way to enable some PHP configuration that would > output more verbose information, such as a backtrace or the URL attempted? > > In our PHP error log, we have the usual semi-useful information. However > this is only a p

RE: [PHP] How do I enable more useful PHP error logging?

2012-02-28 Thread Daevid Vincent
> -Original Message- > From: Stuart Dallas [mailto:stu...@3ft9.com] > > Seriously? Errors like this should not be getting anywhere near your > production servers. This is especially true if you're really getting 30k > hits/s. Don't get me started. I joined here almost a year ago. They did

Re: [PHP] How do I enable more useful PHP error logging?

2012-02-28 Thread Tommy Pham
On Tue, Feb 28, 2012 at 3:14 PM, Daevid Vincent wrote: > My question is, is there a way to enable some PHP configuration that would > output more verbose information, such as a backtrace or the URL attempted? > Have you looked at log4php? [1] It's a log4j (Java based) logging facility port to PHP