i would agree that serialize isn't good for huge arrays, yes, but if you're
considering databases, why not use sessions?

-J
----- Original Message -----
From: "Christian Reiniger" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Friday, February 09, 2001 11:32 AM
Subject: Re: [PHP] Arrays through URL


On Friday 09 February 2001 10:31, Jørg V. Bryne wrote:
> check out: serialize();

> > I'm trying to pass a multi dimensional array through a url link but
> > I'm having a hard time doing this. Is it actually possible? from what

It's possible (with serialize), but not desirable if the array can become
big (which is easy with multidim. arrays). Better:

$ArrayS = serialize ($TheArray);
$AKey = md5 ($ArrayS);

// insert into database (key: $AKey, value: $ArrayS)

$Url = $baseurl . "?key=$AKey"

plus the matching reading code

--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

"Software is like sex: the best is for free" -- Linus Torvalds

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to