Re: [PHP] Arrays through URL

2001-02-09 Thread Christian Reiniger

On Friday 09 February 2001 11:58, Jørg V. Bryne wrote:
> i would agree that serialize isn't good for huge arrays, yes, but if
> you're considering databases, why not use sessions?

Well, if sessions are useful for you, go ahead and use them. If you only 
want to pass something on 1-5 links on your entire site, sessions are 
overkill, but otherwise they'd be my tool of choice.

BTW - arrays don't have to be "huge" to generate unwieldy (and dangerous) 
URLs

> > > 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

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

Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.

- http://www.google.com/search?q=e

--
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]




Re: [PHP] Arrays through URL

2001-02-09 Thread Jørg V . Bryne

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]




Re: [PHP] Arrays through URL

2001-02-09 Thread Christian Reiniger

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]




Re: [PHP] Arrays through URL

2001-02-09 Thread Jørg V . Bryne

check out: serialize();

- Original Message -
From: "Jamie" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Friday, February 09, 2001 10:28 AM
Subject: [PHP] Arrays through URL


> 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 I can
tell
> the url just shows ...$form_options_array=Array
> Is there a better way to do this?
> thanks
> jamie
>
>
> --
> 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]




[PHP] Arrays through URL

2001-02-09 Thread Jamie

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 I can tell
the url just shows ...$form_options_array=Array
Is there a better way to do this?
thanks
jamie


-- 
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]