Re: [PHP] Saving form data into session before leaving a page

2010-04-14 Thread Ashley Sheridan
On Wed, 2010-04-14 at 06:49 +0100, Lester Caine wrote: > Nathan Rixham wrote: > > Peter Lind wrote: > >> On 13 April 2010 17:27, Paul M Foster wrote: > >>> On Tue, Apr 13, 2010 at 03:20:23PM +0200, Merlin Morgenstern wrote: > >>> > Hello everybody, > > I have form where users enter

Re: [PHP] Array differences

2010-04-14 Thread Ashley Sheridan
On Tue, 2010-04-13 at 23:01 -0600, Ashley M. Kirchner wrote: > I have the following scenario: > > > > $array1 = array("12", "34", "56", "78", "90"); > > $array2 = array("12", "23", "56", "78", "89"); > > > > $result = array_diff($array1, $array2); > > > > print_r($

[PHP] Re: would there be an interest in having htmlMicroscope include dygraphs?

2010-04-14 Thread Nathan Rixham
Rene Veerman wrote: > > I would like to include http://www.danvk.org/dygraphs/ into htmlMicroscope. > Would you think it usefull? +1 > Yes, i am a bit worried about being seen as the weird psycho on this > forum. Psychotic i'm not, just sleep-deprived a bit 1: if you you didn't bring personal l

Re: [PHP] Array differences

2010-04-14 Thread Nathan Rixham
Ashley Sheridan wrote: > On Tue, 2010-04-13 at 23:01 -0600, Ashley M. Kirchner wrote: >> >> However what I really want is a two-way comparison. I want elements that >> don't exist in either to be returned: >> > > > I don't see any problems with doing it that way. By some freak chance I made an

Re: [PHP] Array differences

2010-04-14 Thread Rene Veerman
On Wed, Apr 14, 2010 at 12:03 PM, Nathan Rixham wrote: > Ashley Sheridan wrote: >> On Tue, 2010-04-13 at 23:01 -0600, Ashley M. Kirchner wrote: >>> >>> However what I really want is a two-way comparison.  I want elements that >>> don't exist in either to be returned: >>> >> >> >> I don't see any p

Re: [PHP] Array differences

2010-04-14 Thread Ashley M. Kirchner
On 4/14/2010 2:39 AM, Ashley Sheridan wrote: On Tue, 2010-04-13 at 23:01 -0600, Ashley M. Kirchner wrote: $array1 = array("12", "34", "56", "78", "90"); $array2 = array("12", "23", "56", "78", "89"); $diff1 = array_diff($array1, $array2); $diff2 = array_diff($array2, $ar

Re: [PHP] Array differences

2010-04-14 Thread Ryan Sun
Maybe this one works? array_diff(array_unique($array1 + $array2), array_intersect($array1, $array2)) On Wed, Apr 14, 2010 at 4:39 AM, Ashley Sheridan wrote: > On Tue, 2010-04-13 at 23:01 -0600, Ashley M. Kirchner wrote: > >> I have the following scenario: >> >> >> >>      $array1 = array("12", "3

RE: [PHP] Array differences

2010-04-14 Thread Ashley M. Kirchner
No because that only does a one-way comparison. It only tells me what's missing from $array2. I need it from both arrays. That's why I'm comparing 1 versus 2, then 2 versus 1, and then doing a merge/unique on the result. $array1 = array(1, 2, 3, 4, 5, 6); $array2 = array(1, 3, 2

[PHP] How to achieve mixed authentication/anonymous access

2010-04-14 Thread Dirk Thomas / 4wd media
Hi, i have a problem with Authentification. I currently doubt that it is possible at all. Perhaps someone can enlighten me how to achive the goal or confirm that it is not reachable. The scenario is to achieve a mixed authentication/anonymous access similar as described for Subversion (see ht

Re: [PHP] Basic switch statement

2010-04-14 Thread tedd
At 10:04 PM +0100 4/13/10, Nathan Rixham wrote: Robert Cummings wrote: > Nathan Rixham wrote: > Fail on that last one. -1 is not equivalent to FALSE :B well that's one job I'm not getting :p cheers for the picking that one up Rob And that's the reason why I hate test like that! The short

Re: [PHP] Array differences

2010-04-14 Thread lala
Ashley M. Kirchner wrote: $array1 = array(1, 2, 3, 4, 5, 6); $array2 = array(1, 3, 2, 8, 9); $diff1 = array_diff($array1, $array2); $diff2 = array_diff($array2, $array1); $result = array_unique(array_merge($diff1, $diff2)); => (4, 5, 6, 8, 9)

RE: [PHP] Array differences

2010-04-14 Thread Ashley M. Kirchner
> -Original Message- > From: lala [mailto:l...@mail.theorb.net] > Sent: Wednesday, April 14, 2010 10:15 AM > To: Ashley M. Kirchner > Cc: php-general@lists.php.net > Subject: Re: [PHP] Array differences > > Ashley M. Kirchner wrote: > > > > $array1 = array(1, 2, 3, 4, 5, 6); > > $a

Re: [PHP] Basic switch statement

2010-04-14 Thread tedd
At 5:06 PM -0400 4/13/10, Robert Cummings wrote: Nathan Rixham wrote: well that's one job I'm not getting :p Well you DID get 66.7%. I've met "coders" that would stare at the answer and still not understand :D Cheers, Rob. Well.. count me among those staring. I just don't get those type

Re: [PHP] Basic switch statement

2010-04-14 Thread Robert Cummings
tedd wrote: At 5:06 PM -0400 4/13/10, Robert Cummings wrote: Nathan Rixham wrote: well that's one job I'm not getting :p Well you DID get 66.7%. I've met "coders" that would stare at the answer and still not understand :D Cheers, Rob. Well.. count me among those staring. I just don't get t

Re: [PHP] Basic switch statement

2010-04-14 Thread tedd
At 12:32 PM -0400 4/14/10, Robert Cummings wrote: tedd wrote: My "logic" works the other way -- when presented with a logic problem, I come up with a solution that works the way I think and I always to solve the problem presented. Perhaps my solution isn't as clever nor as cryptic as others, b

RE: [PHP] Array differences

2010-04-14 Thread tedd
At 9:37 AM -0600 4/14/10, Ashley M. Kirchner wrote: No because that only does a one-way comparison. It only tells me what's missing from $array2. I need it from both arrays. That's why I'm comparing 1 versus 2, then 2 versus 1, and then doing a merge/unique on the result. -snip- $arra

RE: [PHP] PHP & MYSQL sorting

2010-04-14 Thread Ernie Kemp
Thanks for your thoughts. Ajax is the way to go... Thanks, .../Ernie -Original Message- From: tedd [mailto:tedd.sperl...@gmail.com] Sent: April-12-10 10:18 AM To: Ernie Kemp; 'PHP General List' Subject: Re: [PHP] PHP & MYSQL sorting At 8:16 PM -0400 4/11/10, Ernie Kemp wrote: >Simple i

Re: [PHP] Basic switch statement

2010-04-14 Thread Al
On 4/14/2010 12:28 PM, tedd wrote: At 5:06 PM -0400 4/13/10, Robert Cummings wrote: Nathan Rixham wrote: well that's one job I'm not getting :p Well you DID get 66.7%. I've met "coders" that would stare at the answer and still not understand :D Cheers, Rob. Well.. count me among those s

Re: [PHP] Basic switch statement

2010-04-14 Thread Paul M Foster
On Wed, Apr 14, 2010 at 12:28:13PM -0400, tedd wrote: > At 5:06 PM -0400 4/13/10, Robert Cummings wrote: >> Nathan Rixham wrote: >>> >>> well that's one job I'm not getting :p >> >> Well you DID get 66.7%. I've met "coders" that would stare at the >> answer and still not understand :D >> >> Cheers

Re: [PHP] problems with feature '--with-pdo-oci' RPM (spec)

2010-04-14 Thread Kevin Kinsey
Raul da Silva {Sp4wn} wrote: # rpm -qpl /usr/src/linux/RPMS/x86_64/php52-pdo-oci-5.2.12-2.fc11.x86_64.rpm /etc/php.d/pdo_oci.ini /usr/lib64/php/modules/pdo_oci.so # rpm --test -ivh /usr/src/redhat/RPMS/x86_64/php52-pdo-oci-5.2.12-2.fc11.x86_64.rpm error: Failed dependencies: libclntsh.so.10.

Re: [PHP] Basic switch statement

2010-04-14 Thread Ashley Sheridan
On Wed, 2010-04-14 at 16:52 -0400, Paul M Foster wrote: > On Wed, Apr 14, 2010 at 12:28:13PM -0400, tedd wrote: > > > At 5:06 PM -0400 4/13/10, Robert Cummings wrote: > >> Nathan Rixham wrote: > >>> > >>> well that's one job I'm not getting :p > >> > >> Well you DID get 66.7%. I've met "coders" t

Re: [PHP] Basic switch statement

2010-04-14 Thread Paul M Foster
On Wed, Apr 14, 2010 at 10:06:39PM +0100, Ashley Sheridan wrote: > On Wed, 2010-04-14 at 16:52 -0400, Paul M Foster wrote: > > > I've never had other coders looking over my shoulder, and I agonized for > years over whether my logical solutions were the "best" > approach. Now I >