umm.. yeah. i wrote out this example below to paraphrase my code and it worked perfectly both localhost and online. so then i got really p***ed =)
i did some more looking and i realised its actually caused by a session interference... panic over =) ive been wondering wtf was the deal was with this for days! it seems the servers online handle sessions differently from my localhost, i only thought to look for session related issues because its been causing odd results elsewhere too. i guess that will teach me to be lax with sessions. unsetting the session before redefining them them cured the other one, and cured this too. thanks for prompting me to find it, indirectly =) $i = array(3, 2, 5, 1, 4); $hate = array(stuff3, stuff2, stuff5, stuff1, stuff4); $dodgy = array(blah3, blah2, blah5, blah1, blah4); $problems = array(meh3, meh2, meh5, meh1, meh4); for ( $tick = 1; $tick < 4; $tick++ ) { $i_each = $i[$tick]; $hate_each = $hate[$tick]; $dodgy_each = $dodgy[$tick]; $problems_each = $problems[$tick]; $slack[] = array(i => $i_each, hate => $hate_each, dodgy => $dodgy_each, problems => $problems_each); } array_multisort($slack, SORT_ASC); echo $slack[0][i]."<br>"; echo $slack[0][hate]."<br>"; echo $slack[0][dodgy]."<br>"; echo $slack[0][problems]."<br>"; result; 1 stuff1 blah1 meh1 ----- Original Message ----- From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, 29 September, 2003 2:17 AM Subject: Re: [PHP] array_multisort ... unsupported in different builds? > On Monday 29 September 2003 00:12, john wrote: > > > short version; > > array_multisort works on localhost but when i upload it, ceases to work > > (array is left unsorted) > > [snip] > > Could you post a concise example which illustrates your problem? > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > ------------------------------------------ > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > ------------------------------------------ > /* > You can fool all the people all of the time if the advertising is right > and the budget is big enough. > -- Joseph E. Levine > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php