Re: Arrays through URL
| From: | Jørg V . Bryne | Date: | Fri, 09 Feb 2001 10:58:53 +0000 |
| Subject: | Re: Arrays through URL | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38932@lists.php.net to get a copy of this message | ||
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" <creinig@mayn.de>
To: "PHP" <php-general@lists.php.net>
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: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net